Skip to main content
Version: 8.1

toStr

This function is used by Ignition's Expression language..

Description​

Identical to the toString expression function.

Syntax​

toStr(value, [failover])

  • Parameters

    • Object value - The value to type cast, typically a DataSet or PyDataSet.

    • Object failover - The failover value if type casting fails. [optional]

  • Results

    • String - The value type cast as a string.

Examples​

Code Snippet
toStr(1/3.0) // returns "0.3333333333333333"
Code Snippet
toStr({Root Container.Table.data}) //returns something like: "Dataset [150R x 3C]"