# How I Fix This? else if 

**URL:** <https://forums.unrealengine.com/t/how-i-fix-this-else-if/2227353>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [December 17, 2024, 4:11am UTC](https://forums.unrealengine.com/t/how-i-fix-this-else-if/2227353 "2024-12-17T04:11:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobleono](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nobleono](https://forums.unrealengine.com/u/nobleono)\
**Post date:** [December 17, 2024, 4:11am UTC](https://forums.unrealengine.com/t/how-i-fix-this-else-if/2227353/1 "2024-12-17T04:11:23Z")

</div>

I got this error when im trying to do that (images) idk how to fix i think is the indentation but i dont find the way to fix that  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/0/3e0d2217fe2a47cbf1dd0c1ded42d9a4c820431d.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/0/c10cbfa8e6eeab95ca331d9d3022f9b063b1f5e0.png)

---

<div class="post-metadata">

**Author:** ![CloudsAndCastles](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cloudsandcastles/32/732062_2.png) [@CloudsAndCastles](https://forums.unrealengine.com/u/CloudsAndCastles)\
**Post date:** [December 17, 2024, 9:33am UTC](https://forums.unrealengine.com/t/how-i-fix-this-else-if/2227353/2 "2024-12-17T09:33:47Z")

</div>

is this… python? I don’t think else ifs exist in python, instead you use elif

---

<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:** [December 17, 2024, 11:06am UTC](https://forums.unrealengine.com/t/how-i-fix-this-else-if/2227353/3 "2024-12-17T11:06:33Z")

</div>

@CloudsAndCastles It’s Verse 👍

I think your first **if** (and all the following ones) are not being parsed correctly, maybe try something like this

```auto
if(
    Cond1 and
    Cond2
):
    # Do smth
else if(
    Cond3 and
    Cond4
):
    # Do smth

```

Otherwise try to replace **ands** with commas 🤷
