Retype
This block is used to normalize the output value and to expand potential additional available information. Input value is defined in the left part. Data type is defined in the right part.
Default data types are:
- int: Input value is converted into the numeric data type.
- float: Input value is converted into the numeric data type with decimal point.
- string: Input value is converted to the text data type.
- ip: Input value is converted to the IP address data type.
- mac: Input value is converted to the MAC address data type.
- url: Input value is converted to the URL data type.
Added informations are always as expansion to original value, original value is never overwritten, except string data type.
XML representation of function_retype block
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="function_retype">
<field name="TYPE">int</field>
<value name="VALUE">
<block type="variables_get">
<field name="VAR">item</field>
</block>
</value>
</block>
</xml>

Block “Retype to”

Example of use “Retype to” block with selected IP data type

Result of the “Retype to” block with data type IP