BER Programming Language - Control Flow

Control flow lets your program decide what to do based on conditions.

If, But, Else

if is_ready then
  board:("Ready!")
but is_waiting then
  board:("Waiting...")
else
  board:("Not ready.")
end

Explanation: Use if followed by a condition and then. but acts like else if. else catches all other cases. Always close with end.

Boolean Conditions

this is_ready is enabled
this is_waiting is disabled

Conditions test variables or keywords like enabled or disabled.

Tip: Conditions must be clear and check variables that exist.