This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

true

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.".

Balazs Halasy (05/02/2004 11:44 am)

Balazs Halasy (04/05/2005 4:11 pm)


Comments

There are no comments.