Documentation index Main site
Bendyroad IDE reference manual. © Copyright Bendyroad 2024.

Example: A simple switch and LED

set a LED on when sw1 is on:

if ( sw1 ) {
    led1 = 1 ;
} else {
    led1 = 0 ;
}