Skip to end of metadata
Go to start of metadata

This function is used by Ignition's Expression language.
The following feature is new in Ignition version 8.1.4
Click here to check out the other new features

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})

  • No labels