Skip to the content
Documentation

true

No ratings yet

Summary

Creates and returns a boolean TRUE.

Usage

true()

Returns

TRUE.

Description

This operator creates and returns a boolean TRUE. It can be used to define a boolean variable and in logical comparisons.

Examples

Example 1

{def $my_boolean=true()}

{if $my_boolean}
    The truth is out there.
{else}
    The day the earth stood still.
{/if}

The following output will be produced: "The truth is out there.".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.