ToText method (boolean)

Returns this boolean as a text representation.

Syntax

boolean.ToText
boolean.ToText(trueText, falseText)

Returns the text representation of boolean.

trueText: The text value returned when boolean is true.
falseText: The text value returned when boolean is false.

The default values for trueText and falseText are 'True' and 'False' respectively.

Examples

{% Var boolean1 = True %}
{% Var boolean2 = False %}

Answers: {{ boolean1.ToText }},
         {{ boolean2.ToText }},
         {{ boolean1.ToText('yes', 'no') }},
         {{ boolean2.ToText('yes', 'no') }}

The above example would output: Answers: True, False, yes, no.