If the variable R is equal to 1, (then) we perform 1 action.
If the variable R is not equal to 1, then (otherwise) perform 2 actions.
Sample program:
Download example: file.ardublock | Open Online ArduBlock
Video:
LED
Button
Resistor
Potentiometer
Arduino Pro Mini
Arduino Nano
Arduino Uno
Arduino Uno R3
Arduino Mega
Arduino Leonardo
Bread board
Training set