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β
| Type | Parameter | Description |
|---|---|---|
| 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})