Condition
Test for conditions. See Loop and conditions for usage.
FileExist
Check for a file or directory existing. Supports wildcards * for any number of characters and ? for exactly one character.
Name | Type | Annotation |
---|---|---|
file | filename | supports wildcards: * and ? |
Command
Execute command and check success.
Name | Type | Annotation |
---|---|---|
command | filename | |
silently | boolean | without showing the output. |
Expression
Evaluate expression.
Name | Type | Annotation |
---|---|---|
expression | expression |
Matrix
Evaluate elements of a matrix based on an expression.
If all=yes
, all elements of the matrix must evaluate to true
for the condition to be fulfilled, otherwise any element evaluating to true is sufficient.
Name | Type | Annotation |
---|---|---|
matrix | matrixGenerator | expression is evaluated for each element of resulting matrix |
expression | expression | (variable: data) evaluated for each element |
all | boolean | all (=yes)/any (=no) elements must evaluate to true |
MatrixEmpty
Evaluate if matrix (or instrument) file is empty/has zero size.
Name | Type | Annotation |
---|---|---|
inputfileMatrix | filename |
StringContainsPattern
Determines if there is a match between a pattern or a regular expression and some subsequence in a string.
Name | Type | Annotation |
---|---|---|
string | filename | should contain a {variable} |
pattern | filename | |
isRegularExpression | boolean | pattern is a regular expression |
caseSensitive | boolean | treat lower and upper case as distinct |
StringMatchPattern
Determines if a pattern or a regular expression matches the entire string.
Name | Type | Annotation |
---|---|---|
string | filename | should contain a {variable} |
pattern | filename | |
isRegularExpression | boolean | pattern is a regular expression |
caseSensitive | boolean | treat lower and upper case as distinct |
And
All conditions must be met (with short-circuit evaluation).
Name | Type | Annotation |
---|---|---|
condition | condition |
Or
One of the conditions must be met (with short-circuit evaluation).
Name | Type | Annotation |
---|---|---|
condition | condition |
Not
The result of the condition is inverted.
Name | Type | Annotation |
---|---|---|
condition | condition |