formatBoolean

Purpose

Outputs the given boolean as the specified text label.

Examples

<g:formatBoolean boolean="${myBoolean}" />
<g:formatBoolean boolean="${myBoolean}" true="True!" false="False!" />

Description

Outputs the given boolean as the specified text label. If the <code>true</code> and <code>false</code> option are not given, then the boolean is output using the default label.

Attributes:

boolean - the boolean to output true (optional) - text label for boolean true value false (optional) - text label for boolean false value

Source

Show Source