IF
statement:
IF
performs a test of some type. Common tests include:
<num> EQ <num> | Numeric equality |
<num> NE <num> | Numeric inequality |
<num> EQT <num> | Numeric equality (with tolerance) |
<num> LT <num> | Numeric less than |
<num> GT <num> | Numeric greater than |
<str> EQS <str> | String equality |
<str> EQSS <str> | String equality (to length of shorter string) |
<str> isTrue | String is a true value (Not in X-Midas) |
<str> isFalse | String is a false value (Not in X-Midas) |
<obj> OEQ <obj> | Object equality (Not in X-Midas) |
<file> FEQ <file> | File equality (Not in X-Midas) |
A test can be negated by prefixing it with an
"N ". | |
A complete list of tests is in the explain file for
IF . |
NeXtMidas IF command supports C/C++/Java Style Logical Tests
(i.e. <, <=, ==, !=, >=,> ). See explain file for more details.
|
X-Midas Users Take Note: |
---|
![]() "A" and
"A " look the same to X-Midas).
NeXtMidas uses Java strings which are able to check trailing spaces; this causes
the string tests to behave a bit differently between NeXtMidas and X-Midas.
|