
Expression Structure
An expression can be a combination of:
o Logical and compare operators ( or ,and ,not, >, <, <>, =)
o Arithmetic operators (+ , - , * and / )
o Valid functions (see Functions section)
o Numbers in these formats:
o Hex number: 0x2A
o Binary number: 0b00101010
o Decimal number: 33
Example
Expression 1: 0x2A and LengthOf(F1)
Expression 2: (ValueOf(F1) < 2) or not(LengthOf(F2) <> 10)
Expression 3: (4 + LengthOf(F1))*ValueOf(F2)
The priority of calculating is:
Not, (
*, and
+, or
Strings
Strings in ASL are permitted to be static character strings or can contain variable values that are
calculated at runtime. A formatted string structure is:
“Constant1 (optional) %d (%x, %b) Constant2 (Optional), Value”
Constant1 and constant2 are optional. These can be any character string.
The value of expressions is replaced by the corresponding strings in either decimal (%d),
hexadecimal (%x), or binary (%b) formats, during running of program:
%d: Value replace with decimal format in string
%x: Value replace with Hex format in string
%b: Value replace with Binary format in string
The formatted string used when you want to make a string dynamically during running script.
Examples
"This is a static string"
"Field length is %d, LengthOf(F1)"
Comments
Comments are enclosed in ‘/*’ and ‘*/’ and may span multiple lines.
Examples
/* This is a single line comment */
/* This
is a multi-line
comment */
Komentarze do niniejszej Instrukcji