Overview
Statements and Expressions
Commands and operations in BlitzMax are broken down into 2 main catagories - statements and expressions.
Statements are commands that actually perform some action - for example, assigning a value to a variable, or executing a program loop.
Expressions are 'calculations' that provide the values used by statements. All expressions in BlitzMax have a 'type' (for example, integer/float/string - please refer to the types section for more on types) and an expression's type affects how it can be used.
Program flow
Program flow refers to the order your program's statements are executed in. BlitzMax statements are executed in the order they appear in your source code (top-to-bottom) but various commands can cause blocks of code to be skipped or repeated.
For example, the If statement can be used to conditionally execute a block of code, and the While statement can be used to repeatedly execute a block of code while some condition is true.
BlitzMax also supports multiple statements per line using the ; statement separator.