Prev
Outline
Next
Original Author Paul Laughton, 2011
Page 7
De Re BASIC!
Commands .............................................................................................................................................. 76
Fn.def name|name$( {nvar}|{svar}|Array[]|Array$[], ... {nvar}|{svar}|Array[]|Array$[]) ................ 76
Fn.rtn <sexp>|<nexp> ......................................................................................................................... 77
Fn.end ................................................................................................................................................. 78
Call <user_defined_function> ............................................................................................................. 78
Program Control Commands ...................................................................................................................... 78
If / Then / Else / Elseif / Endif.................................................................................................................. 78
If / Then / Else ......................................................................................................................................... 79
For - To - Step / Next ............................................................................................................................... 79
F_N.continue ........................................................................................................................................... 80
F_N.break ................................................................................................................................................ 80
While <lexp> / Repeat ............................................................................................................................. 80
W_R.continue ......................................................................................................................................... 81
W_R.break ............................................................................................................................................... 81
Do / Until <lexp> ..................................................................................................................................... 81
D_U.continue .......................................................................................................................................... 81
D_U.break ............................................................................................................................................... 82
Labels, GOTO, GOSUB, and RETURN: Traditional BASIC ......................................................................... 82
Label .................................................................................................................................................... 82
GoTo <label> ....................................................................................................................................... 83
GoTo <index_nexp>, <label>... ............................................................................................................ 83
GoSub <label> / Return ....................................................................................................................... 83
GoSub <index_nexp>, <label>... / Return ........................................................................................... 83
Using Source Code from Multiple Files ................................................................................................... 84
Include FilePath ................................................................................................................................... 84
Run <filename_sexp>{, <data_sexp>} ................................................................................................. 85
Program.info <nexp>|<nvar> ............................................................................................................. 85
Switch Commands ................................................................................................................................... 86
Nesting Switch Operations .................................................................................................................. 87
Sw.begin <exp> ................................................................................................................................... 87
Sw.case <exp>, ... ................................................................................................................................ 88
Sw.case <op><exp> ............................................................................................................................. 88