input|not( test )
| Name | Type | Description | Required |
|---|---|---|---|
| test | any | The variable/value that should be tested. | No. |
This operator returns TRUE if the input value is FALSE and vice versa. It is also possible to use the optional "test" parameter for evaluation. If both the input parameter and the "test" parameter are used, it is the input parameter that will be evaluated.
{if false()|not()} The truth is out there. {else} The day the earth stood still. {/if}
The following output will be produced: "The truth is out there.".
{if true()|not()} 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.".
{if not( false() )} The truth is out there. {else} The day the earth stood still. {/if}
The following output will be produced: "The truth is out there.".
{if not( true() )} 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.