input|ge( value1 [, value2 ] )
Name | Type | Description | Required |
---|---|---|---|
value1 | any | A variable/value that should be compared. | Yes. |
value2 | any | Another variable/value that should be compared. | Only if the input parameter is omitted. |
This operator compares two parameters. It returns TRUE if the first parameter is greater than or equal to the second parameter; otherwise FALSE will be returned. If the input parameter is provided, the operator will compare it with the first parameter; otherwise it is the first and the second parameter that will be compared. The following table shows how the different types are treated.
Type | Value |
---|---|
Number |
The value of the number is used. |
String |
The number of characters is used. |
Boolean |
FALSE means 0 and TRUE means 1. |
Array |
The number of elements is used. |
Object |
The number of object attributes is used. |
Other |
Always 0. |
{256|ge( 128 )}
or
{ge( 256, 128 )}
Returns TRUE.
{128|ge( 256 )}
or
{ge( 128, 256 )}
Returns FALSE.
{256|ge( 256 )}
or
{ge( 256, 256 )}
Returns TRUE.
{128|ge( 256, 64 )}
Returns FALSE.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.