true()
This operator creates and returns a boolean TRUE. It can be used to define a boolean variable and in logical comparisons.
{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.".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.