if.greater_equal
/
Conditionals /
if.greater_equal
By Amit Singh. Posted on
Title |
: |
if.greater_equal |
Purpose |
: |
Execute a code block when one value is greater or equal
(lhs>=rhs) to a second number. |
Syntax |
: |
|
[if.greater_equal lhs="VALUE1" rhs="VALUE2"] /***I WILL EXECUTE***/ [/if.greater_equal] |
|
Input Parameters |
: |
lhs: (Required) Left hand side value
rhs: (Required) Right hand side value |
Return Value |
: |
(void) It won’t return anything, instead it will execute the code block
when the condition becomes true. |
Example 1 |
: |
Code |
: |
|
[if.greater_equal lhs="{template.user.age}" rhs="18"] [aw2.get template.voting_eligibility_html] [/if.greater_equal] |
|
Output |
: |
Displays the value of voting_eligibility_html when condition becomes true. |
Description |
: |
In this example we are checking an user’s age is greater or equal to 18. If yes we output a pre-defined html. |
|
Last Modified By Sooraj Raju.