
GeoBASIC Reference Manual
2.GeoBasic Constructs
TPS1100-Version 1.30
2-27
lDone = (x > y)
♦
In closing a unit is appended to a string
s
.
s = s + " cm"
For subroutine calls see Section 2.7.2.
2.6.2 Selection
Statements
Syntax:
SelectionStatement
::= ( IfStatement | SelectStatement )
IfStatement ::=
"
IF
" Condition "
THEN
"
StatementSequence
{ "
ELSEIF
" Condition "
THEN
"
StatementSequence }
[ "
ELSE
"
StatementSequence ]
"
END IF
"
Condition ::=
LogicalExpression
SelectStatement ::=
"
SELECT CASE
" Expression
{ "
CASE
" ConstantList
StatementSequence }
[ "
CASE ELSE
"
StatementSequence ]
"
END SELECT
"
ConstantList
::= Constant { "
,
" Constant }
2.6.2.1 The IF-Statement
The conditions are evaluated one after the other. As soon as one is found that
results in the value
TRUE
, the statement sequence following the corresponding
THEN
is executed and no further conditions are evaluated. If no condition
evaluates to
TRUE
, then the statement sequence after
ELSE
is executed, if there is
an
ELSE
, otherwise nothing is done. In any case, execution continues with the
statement following
END IF
.
Examples:
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...