Logmanager documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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.

Block XML representation

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>

Example of visual representation

Block "Retype to"

Block “Retype to”

Example of block usage

Example of use "Retype to" block with selected IP data type

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

Processed results

Result of the "Retype to" block with data type IP

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