The <type> block enables type conversion; it includes the following Python type conversion functions: bool(), int(), float(), str(), list(), tuple(), dict(), set()
See the Python documentation for more details.
•« in » : variable to be converted; the default value is 1 (type int)
•« type » : defines the type of the “out” output; the default value is 0 (type int)
◦ if « type » == 0 : no conversion occurs
◦ if « type » == 1 : conversion to bool
◦ if « type » == 2 : Conversion to int
◦ if « type » == 3 : Conversion to float
◦ if « type » == 4 : Conversion to str
◦ si « type » == 5 : Conversion to TypeNone
◦ if « type » == 6 : Conversion to list
◦ si « type » == 7 : Conversion to tuple
◦ if « type » == 8 : Conversion to dict
◦ if « type » == 9 : Conversion to set
•« out » : Converted variable (of the type defined by the “type” input)
The “in” input can be of any type; the “type” input is of type int; the “out” output is of the type defined by the “type” input