# Added support for lazy evaluation in WorldConditions 

**URL:** <https://forums.unrealengine.com/t/added-support-for-lazy-evaluation-in-worldconditions/2717164>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [March 23, 2026, 12:50pm UTC](https://forums.unrealengine.com/t/added-support-for-lazy-evaluation-in-worldconditions/2717164 "2026-03-23T12:50:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 23, 2026, 12:50pm UTC](https://forums.unrealengine.com/t/added-support-for-lazy-evaluation-in-worldconditions/2717164/1 "2026-03-23T12:50:01Z")

</div>

I created a PR to address this: [#14558](https://github.com/EpicGames/UnrealEngine/pull/14558)

"

Applied Boolean lazy evaluation to WorldConditions: we now skip evaluating the right operand of false AND x, and true OR x (x being an expression of one or more conditions).

- Improves performance, especially for heavy conditions, such as performing a raycast (“camera-point distance \< 200 AND camera-point trace has no collisions”).
- Protects against right-side errors, such as divide-by-zero (“b \> epsilon AND a / b \> 1”).

"

I would appreciate if you could evaluate and integrate this. Thanks in advance.

(This question was created in reference to: [Missing short-circuit evaluation in [Content removed] )

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [March 23, 2026, 12:50pm UTC](https://forums.unrealengine.com/t/added-support-for-lazy-evaluation-in-worldconditions/2717164/2 "2026-03-23T12:50:05Z")

</div>

**Steps to Reproduce**  
As described in "[Missing short-circuit evaluation in [Content removed] post, the evaluation of WorldConditions does too much work. To check, simply set a “false AND x” or “true OR x” query definition, and check that “x” is evaluated.

---

<div class="post-metadata">

**Author:** ![James.Keeling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@James.Keeling](https://forums.unrealengine.com/u/James.Keeling)\
**Post date:** [March 23, 2026, 3:43pm UTC](https://forums.unrealengine.com/t/added-support-for-lazy-evaluation-in-worldconditions/2717164/3 "2026-03-23T15:43:23Z")

</div>

I see your PR in our internal JIRA. It has not yet been assigned to a dev to handle, but the team is usually quite quick at investigating PRs. Small PRs like this are usually great candidates for speedy investigations, but we will look into it once it has been prioritized and assigned.

-James
