if.equal
/
Conditionals /
if.equal
By Amit Singh. Posted on
Title |
: |
if.equal |
Purpose |
: |
For executing a certain code block when two values becomes equal |
Syntax |
: |
|
[if.equal lhs="VALUE1" rhs="VALUE2"]***I WILL BE EXECUTED***[/if.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. |
Example 1 |
: |
Code |
: |
|
[if.equal lhs="{template.user.meta.favourite_comic}" rhs="dc"] [aw2.get template.user.meta.first_name /] is a DC fan. [/if.equal] |
|
Output |
: |
It will display the text when the user’s favourite
comic is DC |
Description |
: |
In this example we are displaying a text when
the user is a DC fan. |
|
Last Modified By Sooraj Raju.