--- title: "Logic" slug: "logic" updated: 2022-05-31T06:58:16Z published: 2022-05-31T06:58:16Z canonical: "help.pillir.io/logic" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.pillir.io/llms.txt > Use this file to discover all available pages before exploring further. # Logic 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](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/Logic-thumbnail-new.png) | Logic Blocks Description | Logic 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.NoteIt 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](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-Repeater.png) | | ## Loop Until The Loop Until block executes an input variable, until a condition becomes false. | ![logic-loop](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-loop.png) | | ## If The If block executes if a condition is true. | ![logic-if](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-if.png) | | ## If-Else The If block executes if a condition is true. Else block executes when a condition is false. | ![logic-ifelse](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-ifelse.png) | | ## 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](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-comparison.png) | | ## 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](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-andor.png) | | ## **Break** The Break block stops the execution of the current block and moves to the next block in the service. | ![logic-break](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-break.png) | | ## **Terminate** The Terminate block stops the entire service and comes out of the BOS execution. | ![logic-terminate](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-terminate.png) | | ## **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](https://cdn.document360.io/718af901-247b-46be-8ace-83da21839237/Images/Documentation/logic-add%20row.png) |