Question

1
Replies
40
Views
hellc Member since 2014 4 posts
PEGA
Posted: 3 years ago
Last activity: 3 years 7 months ago
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 Data Integration User Interface
Moderation Team has archived post
Share this page LinkedIn