false

Summary

Creates and returns a boolean FALSE.

Usage

false()

Returns

FALSE.

Description

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

Examples

Example 1

{def $my_boolean=false()}
 
{if $my_boolean}
    The truth is out there.
{else}
    The day the earth stood still.
{/if}

The following output will be produced: "The day the earth stood still.".

This document is based on eZ Publish Documentation. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License.