# Greater than or equal not working

**URL:** <https://forums.unrealengine.com/t/greater-than-or-equal-not-working/1865488>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 20, 2024, 11:20pm UTC](https://forums.unrealengine.com/t/greater-than-or-equal-not-working/1865488 "2024-05-20T23:20:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zeaf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zeaf/32/1108035_2.png) [@zeaf](https://forums.unrealengine.com/u/zeaf)\
**Post date:** [May 20, 2024, 11:58pm UTC](https://forums.unrealengine.com/t/greater-than-or-equal-not-working/1865488/2 "2024-05-20T23:58:53Z")

</div>

Pure nodes get called once per connection to any of their pins  
So the random int in range node that you have will be run once for the first and once for the third print string nodes and once for the branch, so 3 times in total, and each time a new random will be generated. You should cache its result to a local variable if you want it to work

[Do you cache a pure "get" functions result if using it on tick/input axis? - #2 by zeaf](https://forums.unrealengine.com/t/do-you-cache-a-pure-get-functions-result-if-using-it-on-tick-input-axis/645985/2) I’ve written some more information on the subject for this answer, might be useful

---

_[View the full topic](https://forums.unrealengine.com/t/greater-than-or-equal-not-working/1865488)._
