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

Controls flow statement

This block is used to interrupt a loop. It can only be used in a controls_forEach block.

There are two possible methods for interrupting a cycling.

  • break out: ends processing of the cycle and continues with the rest of the program,
  • continue with next iteration: ends the current cycle pass and continues with another pass of the cycle.

Block XML representation

XML representation of controls_flow_statement block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="controls_flow_statements">
    <field name="FLOW">BREAK</field>
  </block>
  <block type="controls_flow_statements">
    <field name="FLOW">CONTINUE</field>
  </block>
</xml>

Example of visual representation

Block "Flow control statement"

Block “Flow control statement”

Example of block usage

Example of "Flow control statement" block

Example of “Flow control statement” block

Block is used to skip the processing of the “src_ip” key in the example. As the result, only the variables “dst_ip” and “remote_ip” are retyped to the IP address data type.

Input data

{
  "src_ip": "192.168.1.5",
  "dst_ip": "8.8.8.8",
  "remote_ip": "1.2.3.4",
  "username": "administrator"
}

Processing result

Results of "Flow control statement" block

Results of “Flow control statement” block