When-Do

Conditional branching and program execution, one line only.

Syntax:

you may use „Do“ or „Then“ as the second keyword.

Example

  [..]
 
  when a>b or a=100 do PortB.0 = 1
 
  ' above Syntax is the same as:
  if a>b or a=100 then
    PortB.0 = 1
  endif