Logic
  • 31 May 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Logic

  • Dark
    Light
  • PDF

Article summary

The Logic blocks help perform necessary actions and modifications to the data before sending them to the EdgeReady DB or Drive or third-party servers. They are used to perform logical operations on input, output and local variables. The Logic blocks can be added in all the three EdgeReady runtime lanes.

Logic-thumbnail-new

Logic Blocks DescriptionLogic Blocks on Canvas

Repeater

When multiple rows, columns of a particular table, or multiple variables need to be populated within a single table, then a repeater block is used. The contents of the particular table cannot be directly accessed without a repeater.
Note
It is a best practice to use the Repeater block inside a Plugin lane rather than inserting a Plugin lane inside a Repeater block.
logic-Repeater

Loop Until

The Loop Until block executes an input variable, until a condition becomes false.

logic-loop

If

The If block executes if a condition is true.

logic-if

If-Else

The If block executes if a condition is true. Else block executes when a condition is false.

logic-ifelse

Comparison Operators

This block is used to do the comparison operations.
There are six comparison operators - Less than, Greater than, Less than or equals, Greater than or equals, Equals, Not equals.
Comparison operators can be used in conditional statements or within loops to compare values and take action depending on the result.

logic-comparison

AND / OR

The AND block will return true only if both of its two inputs are also true.

The OR block will return true if either of its two inputs are true.

logic-andor

Break

The Break block stops the execution of the current block and moves to the next block in the service.

logic-break

Terminate

The Terminate block stops the entire service and comes out of the BOS execution. 

logic-terminate

Add Row

The Add Row block adds a new row to a table variable. The values for the new row can be hard coded or populated through variables.



logic-add row

Was this article helpful?

What's Next
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence