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

Integer

Block “Number” is used to define constant of integer type. It is allowed to input only integer positive and negative values which are internally processed as Integers.

Integer values can be used in comparisons in logic operations.

In case integer value is stored in database it is not directly stored under specified key name which always stores string representation, but special key name is created with value representation. Such key name is created as original_key@int. Therefore for accessing integer value retrieved from database integer key name have to be used.

Block XML representation

XML representation of math_number block:

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="math_number">
    <field name="NUM">0</field>
  </block>
</xml>

Example of visual representation

Example of "Number" block

Example of “Number” block

Example of stored representation

{
  "my_value": "123",
  "my_value@int": {
    "value": 123
  }
}

Example of block usage

Example of usage of "Number" block

Example of usage of “Number” block