Wiki - Logics - Logical operators

Boolean operator "and" - If only both expressions are executed!

If the variable R is equal to 10 and the variable N is equal to 20 then we perform the action.

Boolean operator "or" - If any expression is executed!

If the variable R is equal to 10 or the variable N is equal to 20 then we perform the action.

Sample program:

Download example: file.ardublock | Open Online ArduBlock

Video:

Components from Aliexpress

LED

Button

Resistor

Potentiometer

Arduino Pro Mini

Arduino Nano

Arduino Uno

Arduino Uno R3

Arduino Mega

Arduino Leonardo

Bread board

Training set