typeOf
New in 8.1.4
This function is used by Ignition's Expression language.
Description​
Returns the simple name of the Java type.
Syntax​
typeOf(value)
Parameters
- Any value - The object for which you want to find the Java type.
Results
- String - Returns the simple name of the Java type.
Examples​
Code Snippet
// Takes in a string value, returns "String".
typeOf("My String")
Code Snippet
// Takes in a Tag's value using the Tag expression function. Returns a string representing the datatype of the Tag.
typeOf(tag("[default]WriteableInteger1"))
Code Snippet
// Takes in a color type property from a Vision component. Returns "ColorUIResource".
typeOf({Root Container.Label.foreground})