Switch/Case#

The switch operator compares an expression with specified values and exits through the specified connector. If no matches are found, it exits through the "Default" connector.

Expression[Any type] The expression to compare.
Condition 1

[Any type] Condition 1. If matched, it will exit through connector 1, and expression 1 will be executed if specified.

If the connector is not specified, it will exit by default.

Execute expression 1

[Expression] If condition 1 is met, this expression will be executed and it will exit through the corresponding connector.

If the connector is not connected, it will exit by default.

Condition 2

[Any type] Condition 2. If matched, it will exit through connector 2, and expression 2 will be executed if specified.

If the connector is not specified, it will exit by default.

Execute expression 2

[Expression] If condition 2 is met, this expression will be executed and it will exit through the corresponding connector.

If the connector is not connected, it will exit by default.

Condition 3

[Any type] Condition 3. If matched, it will exit through connector 3, and expression 3 will be executed if specified.

If the connector is not specified, it will exit by default.

Execute expression 3

[Expression] If condition 3 is met, this expression will be executed and it will exit through the corresponding connector.

If the connector is not connected, it will exit by default.

Condition 4

[Any type] Condition 4. If matched, it will exit through connector 4, and expression 4 will be executed if specified.

If the connector is not specified, it will exit by default.

Execute expression 4

[Expression] If condition 4 is met, this expression will be executed and it will exit through the corresponding connector.

If the connector is not connected, it will exit by default.

Condition 5

[Any type] Condition 5. If matched, it will exit through connector 5, and expression 5 will be executed if specified.

If the connector is not specified, it will exit by default.

Execute expression 5

[Expression] If condition 5 is met, this expression will be executed and it will exit through the corresponding connector.

If the connector is not connected, it will exit by default.

Execute default expression[Expression] If none of the conditions are met, this expression will be executed.
Error handling level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Exit direction

Select the exit direction from the block when an error occurs. Possible values:

  • "Default" - by default;
  • "Right" - to the right;
  • "Bottom" - down.

This property allows you to determine the exit direction when errors occur for blocks that do not contain the "If error" connector (for example, the "Condition" block).

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message level

Select the message level that the blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error text[Text] Returns detailed information about the error in case of incorrect execution of the block.