Control Structure Events

If Else - Checks for the condition If, if not directs to conditon Else

image

  1. You can either choose the whole condition as And or Or
  2. image
  3. In Left-hand type, choose either Variable/Element
  4. For Variable, assign a Value
  5. For Element, Choose from any of these selector - CSS Selector/X Path/Id and key in the corresponding Path/Id
  6. In Operator, choose any of the following conditions: Equal/Not Equal/Greater Than/Lesser Than/Greater Than or Equal To/Lesser Than or Equal To/In/Not In/Contains/Starts With/Ends With/Doesn't Contain/Doesn't Start With/Doesn't End With/Between/Not Between/Is Null/Is Not Null/Is Empty/Is Not Empty
  7. In Right-hand type, choose either Variable/Element/Value
  8. For Variable, assign a Value
  9. For Element, Choose from any of these selector - CSS Selector/X Path/Id and key in the corresponding Path/Id
  10. For Value, choose from any of the following data type: String/Number/Masked/Date/Boolean/Array/Table and key in the corresponding Data Value
  11. Key in the If Then condition
  12. Key in the Else condition
  13. In the Timeout section, specify a time in milliseconds. If the condition is not performed within the time specified, bot will be stopped
  14. In the description box, you can give a short description for your reference
  15. Click the Save button to save this event

Switch - Checks for the condition between Cases

image

  1. In Left-hand type, choose either Variable/Element
  2. Screenshot_from_2024-02-23_16-05-01
  3. For Variable, assign a Value
  4. For Element, Choose from any of these selector - CSS Selector/X Path/Id and key in the corresponding Path/Id
  5. Condition for Cases Variable/Value
  6. For Variable, assign a Value, then choose any of the corresponding condition accordingly
  7. For Value, choose either String/Number, then choose any of the corresponding conditions accordingly
  8. In the Timeout section, specify a time in milliseconds. If the switch condition is not performed within the time specified, bot will be stopped
  9. In the description box, you can give a short description for your reference
  10. Click the Save button to save this event

For Each - Checks for the condition of Each

image

  1. Choose from any of these loops through condition Variable/Number/Children image
  2. For Variable, key in From Variable and specify Assign To
  3. Key in Increase By/Decrease By values and specify Assign Index To Variable
  4. In the description box, you can give a short description for your reference
  5. Click the Save button to save this event
  6. For Number, specify Assign To
  7. Key in Increase By/Decrease By values and specify Assign Index To Variable
  8. In the description box, you can give a short description for your reference
  9. Click the Save button to save this event
  10. For Children, specify Assign To
  11. Key in Increase By/Decrease By values
  12. Choose from any of these selector - CSS Selector/X Path/Id and key in the corresponding Path/Id
  13. Specify Assign Index To Variable
  14. In the description box, you can give a short description for your reference
  15. Click the Save button to save this event
  16. If Enable Process button is enabled, the condition For Each will be split into branches for quicker execution

Break - Breaks the loop through if a condition is satisfied

  1. image
  2. Break the for-each loop using "Break Event"
  3. In the description box, you can give a short description for your reference
  4. Click the Save button to save this event