1.Functional Description
1.1Purpose
FALSE and "1" if the expression evaluates TRUE. An error flag is set to "1" if an error is
encountered during the evaluation of the expression.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.4Processing
NOTE: In the following specification, a "condition" is defined as a value + an operator + a value,
e.g. 0A1 ("false and true"), 1O1 ("true or true"), 1A1 ("true and true"). Some conditions also have
parentheses around them; some do not.
A. Remove blanks from input text string.
B.Process conditions within parentheses:
can be found immediately to the left of the first right parenthesis.
2)Evaluate the extracted condition using boolean logic (e.g. True AND False evaluates FALSE) to
either "1" (TRUE) or "0" (FALSE).
3)Replace the condition and the parentheses in the original string with the result of the boolean
evaluation, e.g. "(1A0)" is replaced with "0".
Repeat steps 1-3 until no more right parentheses are found.
includes the value immediately before and after the first "A".
2)Evaluate the extracted condition using boolean logic (e.g. True AND False evaluates FALSE) to
either "1" (TRUE) or "0" (FALSE).
3)Replace the condition in the original string with the result of the boolean evaluation, e.g.
"1A0" is replaced with "0".
4)Repeat steps 1-3 until no more AND operators ("A") are found.
1)Extract the first OR condition (process left to right) in the boolean string; condition
includes the value immediately before and after the first "A".
either "1" (TRUE) or "0" (FALSE).
3)Replace the condition in the original string with the result of the boolean evaluation, e.g.
"1O1" is replaced with "1".
4)Repeat steps 1-3 until the length of the string is 1; return this character ("1" or "0") in the
Validation Flag return value.
^
D3200480 - Evaluate Boolean Expression
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cValidationFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cErrorFlag | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szBooleanExpression | CF01 | char | OPT | NONE |
Reserved by J.D. Edwards A string that is generated by concatinating the value of each segment. |
None |
None |