Type of variable
Anatomy
<typeof var="var" var_result="var"/>
Description: TYPEOF returns the intrinsic data type of a variable.
Attributes
Results:
| Binding | Type | Predicate |
|---|---|---|
| var_result | string | N/A |
Examples
Example
<set var="name">iXML</set>
<typeof var="name" var_result="type"/>
<if value1="$type" func="=" value2="string">
<output>My name is a string!</output>
</if>
<!-- My name is a string! -->