Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual
Page 16
Advertising
13
If
If Expression Then
Block1
Else If Expression Then
Block2
Else If Expression Then
Block3
Else
Block4
Remark
The if statement evaluates the expression. (For information about expression, see Expression
section.)
The if executes block1 if expression is true (nonzero); if else is present and expression is false
(zero), it executes block2. After executing block1 or block2, control passes to the next statement.
Each block can have several inner if.
Example
If CURPOS > 5 and ValueOf(F1) < 8 Then
{
H1 = AddField(CURPOS,8,"H1","Field H1","H1");
}
Else if(CURPOS < 9) then
{
H2 = AddField(CURPOS,8,"H2","Field H2","H2");
}
else
{
H4 = AddField(CURPOS,548,"H4","Field H4","H4");
}
Advertising