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