Qu-Bot, A Quickly Programmable Robot User’s Manual
Page
39
of
52
6.1.4. Glow LED’s as per switch press status
There are two programs written for glowing LED’s on Qu-Bot depending upon the
switch press.
IF blocks are used within an infinite loop.
From first sight it looks that both the programs are same. But there is functional
difference. Find out what is the difference?
Hint: Press more than one switch and release only switch.
6.2. Other IF blocks
Right side program in section 6.1.4 can also be written through IF(Switch) block as
shown in above figure. Also it will be much faster.
*In all IF() blocks you can add ELSE IF(Condition) block.