if.less_than
/
Conditionals /
if.less_than
By Amit Singh. Posted on
Title |
: |
if.less_than |
Purpose |
: |
Execute a code block when one value is less than
(lhs<rhs) to a second number. |
Syntax |
: |
|
[if.less_than lhs="VALUE1" rhs="VALUE2"] /***I WILL EXECUTE***/ [/if.less_than] |
|
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.less_than lhs="{template.user.age}" rhs="60"] [aw2.get template.senior_citizen_ineligible_html] [/if.less_than] |
|
Output |
: |
Displays the value of senior_citizen_ineligible_html when condition becomes true. |
Description |
: |
In this example we are checking an user’s age is less than 60. If yes we output a pre-defined html. |
|
Last Modified By Sooraj Raju.