ez.no / exponential / documentation / reference / template operators / variables / is_unset
is_unset( test )
| Name | Type | Description | Required |
|---|---|---|---|
| test | any | Variable to test. | yes |
True if the first (and only) parameter is false. False otherwise.
The is_unset operator can be used to check if a variable is unset. The operator returns true if the first (and only) parameter is false. The operator doesn't take an input parameter.
{let my_variable=true()} {is_unset($my_variable)} {/let}
The example above returns false.
{let my_variable=false()} {is_unset($my_variable)} {/let}
The example above returns true.
log in or create a user account to comment.
Comments