Table of Contents

Search

  1. Preface
  2. Introduction
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Simple Conditions

Simple Conditions

A simple condition compares two values using the specified comparison operator.
The syntax is: <value1> <condition> <value2>
<Value1> and <Value2> Parameters
  • Can be constant values or variable references. Variable references are denoted using the standard variable reference syntax ${variableName}.
  • Can be enclosed in single quotes to indicate that they are character (or string) values. By omitting single quotes, a numeric comparison is performed. It is not legal to have one value enclosed in single quotes, but not the other.
    <Condition> Parameters
    Condition
    Syntax
    Description
    Equals
    eq
    Checks for equality of the given values. The condition evaluates to true if and only if both values are exactly the same. When comparing string values, the comparison is performed in a case-sensitive manner. So the condition ‘a’ eq ‘A’ evaluates to false.
    Not Equals
    ne
    Checks for un-equality of the given values. The condition evaluates to true if and only if both values are not equal. When comparing string values, the comparison is performed in a case-sensitive manner. So the condition ‘a’ ne ‘A’ evaluates to true.
    Less Than
    lt
    Checks to see if <value1> is less than <value2>. If so, it evaluates to true.
    Less Than or Equal to
    le
    Checks to see if <value1> is less than or equal to <value2>. If so, it evaluates to true.
    Greater Than
    gt
    Checks to see if <value1> is greater than <value2>. If so, it evaluates to true.
    Greater Than or Equal to
    ge
    Checks to see if <value1> is greater than or equal to <value2>. If so, it evaluates to true.
    Examples
    1 eq 1 – always evaluates to true as both values are numeric constants, 1.
    1 eq ${fileCount} – Evaluates to true if the value of variable fileCount at the time of evaluation is 1.
    ${fileCount} lt 10 – Evaluates to true if the value of variable fileCount at the time of evaluation is less than 10.
    ${n1} ge ${n2} – Evaluates to true if the value of variable n1 is greater than or equal to the value of variable n2.
    ‘MFT’ eq ‘mft’ – Always evaluates to false as both values are character constants and the case is different.
    ‘NE’ eq ‘${state}’ – Evaluates to true if the value of the variable ${state} at the time of evaluation is NE.
    ‘${state}’ lt ‘M’ – Evaluates to true if the value of variable ${state} begins with a upper case letter A through N.
    ‘${x}’ le ‘${y}’ – Evaluates to true if the character comparison of variable x is less than variable y.

0 COMMENTS

We’d like to hear from you!