β¬ No Reverse
β¬ No Reverse
The No / Invert block allows you to invert a Boolean value (True/False).
This block is essential for creating negative logic conditions, such as checking that a condition is not met before performing an action.
π₯ Entries
- value (Boolean): The Boolean value to invert, which may come from a condition or a variable.
π€ Outings
- value (Boolean): The inverted value (True becomes False, False becomes True).
π‘ Example of use
Scenario: Prevent access to a secure area without a badge
- A user attempts to open a secure door.
- The system checks if the variable
aBadgeisTrue(the user has a valid badge). - The value of
aBadgeis connected to the value input of the No block. - The output of the No block is linked to a condition that triggers an alert.
- Behavior:
- If
aBadge=False(no badge), the No block returnsTrueβ the alert is triggered. - If
aBadge=True(valid badge), the No block returnsFalseβ access is authorized.
βοΈ Technical Details
- Logic operation: Pure inversion (
!valuein programming), compatible only with Boolean data. - Error handling: If a non-Boolean value is provided, the block returns
Falseby default.
Updated on: 04/03/2026
Thank you!
