if.not_equal
/
Conditionals /
if.not_equal
By Amit Singh. Posted on
| Title |
: |
if.not_equal |
| Purpose |
: |
For executing a certain code block when two values are not equal |
| Syntax |
: |
|
|
[if.not_equal lhs="VALUE1" rhs="VALUE2"] ***I WILL BE EXECUTED*** [/if.not_equal] |
|
| Input Parameters |
: |
lhs: (any) (Required) Left hand side value
rhs: (any) (Required) Right hand side value |
| Return Value |
: |
(void) It won’t return anything, instead it will execute the codes
when the condition becomes true (which means lhs is not equal to rhs). |
| Example 1 |
: |
| Code |
: |
|
|
[if.not_equal lhs="{template.user.meta.favourite_comic}" rhs="dc"] [aw2.get template.user.meta.first_name /] is a MARVEL fan. [/if.not_equal] |
|
| Output |
: |
It will display the text when the user’s favourite comic is not DC |
| Description |
: |
In this example we are displaying a text when the user is not a DC fan. |
|
Last Modified By Sooraj Raju.