Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Enforcing the Order of Condition Evaluation

To enforce the order of evaluation between two or more conditions, put them on the same line (that is, in one statement ending in a semicolon) joined by the logical operator `&&`.

Be aware of some differences in execution when you combine conditions. For example, consider the following separate conditions. A null pointer exception might be thrown if `concept.containedConcept` is null, if the second condition was checked before the first:

    concept.containedConcept != null;
    concept.containedConcept.property == "test";

You can, however, combine the conditions as follows:

    concept.containedConcept != null && concept.containedConcept.property == "test";

In this case, a null pointer exception is not thrown when `concept.containedConcept` is null because it is always checked first.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.