Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

Operators (conditional)

Use conditional operator functions to link two conditional expressions.

To instruct Longview to carry out certain instructions, use a conditional operator:

Conditional operatorDescription

AND

When each of several conditions must be true.

OR

When one of several conditions must be true.

You can use parentheses to change or change the order in which conditions are evaluated; for example:

IF (Cash1 GT 0 OR Cash2 LT 100) AND (Cash3 LT 0 OR Cash4 NE 100)

Syntax

Condition1 Operator Condition2

where:

  • Each Condition is a relational expression containing the EQ, GE, GT, NE, LT, or LE functions, or another expression containing the And or Or functions. For information on relational operators, see Operators (relational).
  • Operator is a conditional operator. Select one of the following:
    ValueDescription

    AND

    To find an expression that matches both conditions.

    OR

    To find an expression that matches either condition.

Syntax example

IF NetInc GT 0 AND Debt LT 0.2 "*" NetInc

Published:

Operators (conditional)

Use conditional operator functions to link two conditional expressions.

To instruct Longview to carry out certain instructions, use a conditional operator:

Conditional operatorDescription

AND

When each of several conditions must be true.

OR

When one of several conditions must be true.

You can use parentheses to change or change the order in which conditions are evaluated; for example:

IF (Cash1 GT 0 OR Cash2 LT 100) AND (Cash3 LT 0 OR Cash4 NE 100)

Syntax

Condition1 Operator Condition2

where:

  • Each Condition is a relational expression containing the EQ, GE, GT, NE, LT, or LE functions, or another expression containing the And or Or functions. For information on relational operators, see Operators (relational).
  • Operator is a conditional operator. Select one of the following:
    ValueDescription

    AND

    To find an expression that matches both conditions.

    OR

    To find an expression that matches either condition.

Syntax example

IF NetInc GT 0 AND Debt LT 0.2 "*" NetInc

For an optimal Community experience, Please view on Desktop