Fully Bracketed Syntax

Fully bracketed syntax means BEGIN and END are not used to create blocks or to group statements. Rather, for each statement, a specific statement terminator is defined.   A block is defined between each token pair, where variables can be declared.   (Hmm,  that makes sense. Right.)

All constructs support fully-bracketed syntax.  The non-bracketed versions are deprecated.

  1. IF .. ELSEIF .. ELSEIF .. ELSE .. ENDIF
  2. WHILE .. ENDWHILE
  3. REPEAT .. UNTIL
  4. FOR .. ENDFOR
  5. FUNCTION .. ENDFUNCTION