Question

1
Replies
60
Views
Chris Hellewell (hellc)
PEGA
Architect, Next Best Action Strategy Framework
Pegasystems Inc.
US
hellc Member since 2014 4 posts
PEGA
Posted: February 19, 2017
Last activity: August 26, 2020
Posted: 19 Feb 2017 23:38 EST
Last activity: 26 Aug 2020 8:41 EDT
Closed
Solved

Do Boolean functions "fail fast"?

Will @and(expression_1, expression_2, expression_3) return a false result when the first expression (from left to right) evaluates as false, or are all expressions evaluated before a result is returned?

Similarly will @or(expression_1, expression_2, expression_3) return a true result when the first expression (from left to right) evaluates as true, or are all expressions evaluated before a result is returned?

For @if(expression_1, expression_2, expression_3), are both expression_2 and expression_3 always evaluated, or is only the expression that corresponds to the results of expression_1 evaluated?

Also, is there any difference or preference to using @and(A, B) over A && B, or @or(A, B) over A || B ?

***Updated by moderator: Lochan to update Categories***

Data Integration Java and Activities User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.