# About the AND condition of if statements

**URL:** <https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [November 5, 2024, 2:04am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292 "2024-11-05T02:04:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![renzymode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renzymode](https://forums.unrealengine.com/u/renzymode)\
**Post date:** [November 5, 2024, 2:04am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292/1 "2024-11-05T02:04:55Z")

</div>

Sorry for the basic question.  
I couldn’t find it by searching.

Is this if statement an and condition?

if(test1 \>= test2, test2 \> 0):

If test1 \> test2 is true and if test2 \> 0 is true,  
does that mean the if statement will be executed?

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [November 5, 2024, 8:31am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292/2 "2024-11-05T08:31:57Z")

</div>

`and` and `,` don’t have the same precedence order (not sure if we can talk about precedence for the coma though), but basically they’re the same yes

---

<div class="post-metadata">

**Author:** ![renzymode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renzymode](https://forums.unrealengine.com/u/renzymode)\
**Post date:** [November 6, 2024, 4:35am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292/3 "2024-11-06T04:35:27Z")

</div>

Thanks for telling me.  
I would like to learn Verse little by little.

---

<div class="post-metadata">

**Author:** ![renzymode](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@renzymode](https://forums.unrealengine.com/u/renzymode)\
**Post date:** [November 6, 2024, 4:35am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292/4 "2024-11-06T04:35:49Z")

</div>

Thanks for telling me.  
I would like to learn Verse little by little.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 6, 2024, 4:36am UTC](https://forums.unrealengine.com/t/about-the-and-condition-of-if-statements/2105292/5 "2024-12-06T04:36:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
