Published on : August 17, 2020
Title : if.greater_than
Purpose : If condition to check greater value.
Syntax : [if.greater_than lhs=’Value_1′ rhs=’Value_2′]
//** Do something if LHS value is greater than RHS value **//
[/if.greater_than]
Input Parameters :
lhs : left hand side value to be compared with right hand side
rhs : right hand side value to be compared with left hand side
Return Value : It does not return anything
Example 1 :
Code :
[template.set value_1 = 200/] [template.set value_2 = 100/] [if.greater_than lhs={template.value_1} rhs={template.value_2}]

value_1 is greater than value_2

[/if.greater_than]
Output : value_1 is greater than value_2.
Description : In the example, lhs value_1 variable is declered and there is store value 200 also rhs value_2 variable is stroe 100. As the variable value_1 is greater than value_2 variable, then condition will get satisfied the logic inside will get executed.
Example 2 :
Code : [template.value_1 = “200”/]
[template.value_2 = “400”/]
[if.greater_than lsh=template.value_1 rhs=template.value_2]
Condition is true.
[/if.greater_than]
Output :
Description : In the example, lhs value_1 variable is declered and there is store value 200 also rhs value_2 variable is stroe 400. As the variable value_1 is less than value_2 variable, then condition will not get satisfied the logic inside will not get executed.