if.even
/
Conditionals /
if.even
By Amit Singh. Posted on
Title |
: |
if.even |
Purpose |
: |
Used to determine whether the given variable is even. |
Syntax |
: |
|
[if.even "variable_name"] //** your code to execute when true **// [/if.even] |
|
Input Parameters |
: |
variable name: (int) (Required) variable to check |
Return Value |
: |
N/A |
Example 1 |
: |
Code |
: |
|
[if.even {template.arg}] I am an Even Number [/if.even] |
|
Output |
: |
I am an Even Number |
Description |
: |
The above example code will output string if the template.arg has an evven number. Otherwise it will be empty. |
|
Last Modified By abhishek.