Published on : August 19, 2020
Title : if.not_int
Purpose : The Condition to check given variable data type is not an Integer type.
Syntax : [if.not_int variable_name]
//** Do something if given variable name is not an Integer type **//
[/if.not_int]
Input Parameters :
variable_name : The variable name which we want to check that given variable is not an integer type
Return Value : It return boolean value (true/false)
Example 1 :
Code : [template.customer_name = “Roy” /]
[if.not_int template.customer_name]
Given variable is not an Integer type.
[/if.not_int]
Output : Given variable is not an Integer type.
Description : In the example, define variable customer_name is stored value is an type String, then condition will get satisfied hence logic inside will get executed.
Example 2 :
Code : [template.value_1 = 200/]
[if.not_int template.value_1]
Given variable is not an Integer type.
[/if.not_int]
Output :
Description : In the example, define variable value 1 stored value is an Integer type , then the condition will not get satisfied hence logic inside will not get executed.