Logic Operations
Logic operations allow you to combine multiple conditions to create more complex decision-making rules.
And / Or
The and / or block combines two boolean values.
- AND: Returns true only if both inputs are true.
- Example:
Image A foundANDImage B found.
- Example:
- OR: Returns true if at least one of the inputs is true.
- Example:
Image A foundORImage B found.
- Example:
Not
The not block inverts a boolean value.
- Returns
trueif the input isfalse. - Returns
falseif the input istrue. - Usage: "Repeat while not image found" (Wait until image appears).
Example
Checking if we should click a button only if the screen is ready AND the button is visible: