ez.no / exponential / documentation / reference / template operators / variables / is_set
is_set( test )
| Name | Type | Description | Required |
|---|---|---|---|
| test | any | Variable to test. | yes |
true if the target variable is non-false; false otherwise.
This operator simply checks the parameter. If the value of the parameter is a non-false value (meaning that it is set), the operator returns true. Otherwise false is returned.
{is_set( $whatever )}
Returns false as long as whatever hasn't been declared and given a non-false value.
{let whatever="We need some more fuel!"} {is_set( $whatever )} {/let}
Returns true.
log in or create a user account to comment.
Comments