Login

email address:

password:

Products

Development Software

Open Source Software

Pyxis Boards

If/Then/Else/EndIf

The basic logic building block of any application is the If/Then block. If, which is used in conjunction with a comparison operator, tests whether a certain condition has been reached, such as an input being above a certain number.

When combined with Else you can perform a separate set of logic when the condition tested by the If statement is not reached.

All If/Then statements must be performed in blocks, such as below:

If x = 7 Then
  return
Else
  drawLine(0,0,x,y)
EndIf

Reference Home