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