Array Initialization; Reserved Words; Operator - Maple Systems Silver Plus Series Installation And Operation Manual

Hide thumbs Also See for Silver Plus Series:
Table of Contents

Advertisement

Macros

Array Initialization

For mats
The initial values are written within the brackets {} and are divided by comma (,). These values are assigned in
order from left to right starting from array index=0.
Con stants
A constant is a numeric or boolean value that does not change. Constants may be written as any of the following:
Decimal constant
Hexadecimal constant
ASCII code (character constant)
Boolean: True (not zero), False (zero)

Reserved Words

The following symbols and names are keywords that are reserved for use by macros. They cannot be used (as a
complete name) in any function name, array name, or variable name. However, the reserved words may be
contained within a variable name such as: my_int, TheEnd, etc.
And
bool
Break
BIN
BCD
char
Continue
down

Operator

Below is a list of the recognized operators.
Variables contain an unknown, random value when declared. Variables must be
initialized before they are used.
int MyArray[10] = {1,2,3,4,5,6,7,8,9,10}
char LetterArray[6] = 'MYWORD'
Written As
1234
0xFA20
'ABCD'
True, 1, False, 0
Else
End
False
float
For
GetData
If
int
Group
Assignment operator:
Comparison operators:
Examples
short MyVal = 1234
short MyVal = 0xFA20
char String[4] = 'ABCD'
bool Done = 0, or, bool Done = False
next
not
Or
return
select
SetData
short
Step
Name
Sym
Assignment:
=
Addition:
+
Subtraction:
-
Multiplication:
*
Division:
/
Modulo:
%
Less than:
<
Less than or equal
<=
to:
Greater than:
>
247
Then
To
True
void
wend
While
xor
1010-1007, Rev 05

Advertisement

Table of Contents
loading

Table of Contents