Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt
hiddentrue

Functions which compare values and return a true or false result.

List of logical functions

Page Treechildren
rootexcerptType@selfsimple
excerpt

...

true

Anchor
trueFalse
trueFalse
True and False

The values True and False are represented by 1 and 0 respectively in PhixFlow and any function which returns a logical value will return either 1 or 0.

...

Anchor
comparator
comparator
Comparator Type

Logical Some logical functions may take a Comparator Type parameter which specifies the comparison operations. These are strings with one of the following values:

...

.

Specify the 2 items to compare and the comparator string as required by the logical function. For example, a comparator in a field condition has the syntax:

Code Block
fieldCondition(attrOne,_EQUALS,attrTwo)

Comparators are used within the containing logical function and evaluate to either true or false.

Comparator strings are:

ComparatorEvaluates to True when...Types handled
_LESS_THAN
The first
item 1 is less than
the second. Numerical and Alphabetic comparisons are handled
item 2numeric, alphabetic
_GREATER_THAN
The first
item
is greater than the second. Numerical and Alphabetic comparisons are handled
1 is greater than the item 2numeric, alphabetic
_EQUALS
The first
item
is identical to the second. Numerical and Alphabetic comparisons are handled
1 is identical to the item 2numeric, alphabetic
_GREATER_THAN_OR_EQUAL
The first
item
is
1 is identical to or greater than
the second. Numerical and Alphabetic comparisons are handled
the item 2numeric, alphabetic
_LESS_THAN_OR_EQUAL
The first
item
is
1 is identical to or less than
the second. Numerical and Alphabetic comparisons are handled
the item 2numeric, alphabetic
_NOT_EQUALS
The first
item
is
1 is not identical to
the second. Numerical and Alphabetic comparisons are handled
the item 2numeric, alphabetic
_STARTS_WITH
The first
item
starts
1 starts with the
second string. Alphabetic comparisons only
string specified in item 2alphabetic
_NOT_STARTS_WITH
The first
item
does
1 does not start with the
second string. Alphabetic comparisons only
string specified in item 2alphabetic
_LIKE
The first item is like the second string. Alphabetic comparisons only

 

...

item 1 is like the item 2alphabetic
The following comparators, _IS_NOT_NULL and _IS_NULL, only have 1 item, which is compared to null.
_IS_NOT_NULLitem 1 is a non-null string or value.numeric, alphabetic
_IS_NULLitem 1 is null.numeric, alphabetic