AgileApps Support Wiki Pre Release

Common:Testing Boolean Values in Velocity

From AgileApps Support Wiki
Revision as of 00:37, 16 November 2013 by imported>Aeric (Created page with "<noinclude>__NOINDEX</noinclude> Boolean values are seen in Velocity as strings with the value <tt>"Yes"</tt> or <tt>"No"</tt>. So a test of a boolean field looks something like ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

__NOINDEX Boolean values are seen in Velocity as strings with the value "Yes" or "No". So a test of a boolean field looks something like this:

#if ($BooleanField == "Yes"), or
#if ($BooleanField == "No")

Or, similarly,

#if ($BooleanField != "Yes"
#if ($BooleanField != "No")