Logic boolean constant
Block true is used to represent boolean constant of true or false.
XML representation of logic_boolean block
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="logic_boolean">
<field name="BOOL">TRUE</field>
</block>
<block type="logic_boolean">
<field name="BOOL">FALSE</field>
</block>
</xml>
Block is used twice in the example:
- On row “create dictionary with to”: sets boolean value to false in the “admin” key.
- On row “do in dictionary item”: sets boolean value to true in the “admin” key.