Published on : August 17, 2020
Title : if.greater_equal
Purpose : Condition to check LHS value is greater than or equal to RHS value.
Syntax : [if.greater_equal lhs=’Value_1′ rhs=’Value_2′]
//** Do something if LHS value is greater or eqaul to RHS value **//
[/if.greater_equal]
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.value_1 = “200”/]
[template.value_2 = “100”/]
[if.greater_equal lsh=template.value_1 rhs=template.value_2]
value_1 is greater than value_2
[/if.greater_equal]
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 = “200”/]
[if.greater_equal lsh=template.value_1 rhs=template.value_2]
value_1 and value_2 both are equal
[/if.greater_equal]
Output : value_1 and value_2 both are equal.
Description : In the example, lhs value_1 variable is declered and there is store value 200 also rhs value_2 variable is stroe 200. As the variable value_1 is equal to value_2 variable, then condition will get satisfied the logic inside will get executed.