Logmanager dokumentace
Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Zpět na domovskou stránku

Dictionary create with

This section is available only in English

This block is used to create new dictionary with predefined key-value pairs. New keys are connected via the “set” connection and values are connected via connection “to”. Both are in the right side of the block. Adjustment of amount of key-value pairs can be opened by clicking on the block options icon.

Block XML representation

XML representation of dictionaries_create_with block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="dictionaries_create_with">
    <mutation items="0"/>
  </block>
  <block type="dictionaries_create_with">
    <mutation items="1"/>
    <value name="ADD0">
      <block type="text">
        <field name="TEXT">key</field>
      </block>
    </value>
    <value name="VAR0">
      <block type="text">
        <field name="TEXT">value</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

Block "Create dictionary with"

Block “Create dictionary with”

Example of block usage

Example of "Create dictionary with" block

Example of “Create dictionary with” block

In the example: Block is used to define dictionary “item” with key “user” with value “administrator” and second key “status” with value “OK”.

Processing result

Results of "Create dictionary with" block

Results of “Create dictionary with” block