# If statement does not run on vector3

**URL:** <https://forums.unrealengine.com/t/if-statement-does-not-run-on-vector3/2429001>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, question, fortnite\
**Created:** [March 30, 2025, 12:08pm UTC](https://forums.unrealengine.com/t/if-statement-does-not-run-on-vector3/2429001 "2025-03-30T12:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlsFocus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plsfocus/32/1090249_2.png) [@PlsFocus](https://forums.unrealengine.com/u/PlsFocus)\
**Post date:** [March 30, 2025, 12:08pm UTC](https://forums.unrealengine.com/t/if-statement-does-not-run-on-vector3/2429001/1 "2025-03-30T12:08:00Z")

</div>

**Hi, my if statement does not run, and I’m not sure why.**  
_With the Prints, I let you know what runs and what does not._

The test code:

```auto
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/Diagnostics }

vector_device := class(creative_device):

    @editable MovementPoints : []vector3 = array{}
    @editable VectorRotationPoint : []rotation = array{}
    @editable Boat : creative_prop = creative_prop{}

    OnBegin<override>()<suspends>:void=
        spawn:
            MoveToVectorPoint()

    MoveToVectorPoint()<suspends>:void=
        Print("This print works")
        if (VectorTargetPoint :=MovementPoints[0], RotationPoint := VectorRotationPoint[0]):
            Print("This Print does not print", ?Duration:=6.0)
            Boat.MoveTo(VectorTargetPoint, RotationPoint, 5.0)
        else:
            Print("This Print does work", ?Duration:=6.0)

```

Device setup:

 ![Screenshot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/1/191e2b5e019555069c38ca2f840b700d363c2d01.png)

---

<div class="post-metadata">

**Author:** ![PlsFocus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/plsfocus/32/1090249_2.png) [@PlsFocus](https://forums.unrealengine.com/u/PlsFocus)\
**Post date:** [March 30, 2025, 1:02pm UTC](https://forums.unrealengine.com/t/if-statement-does-not-run-on-vector3/2429001/2 "2025-03-30T13:02:52Z")

</div>

Found out It was not I had not put an `@editable` for the device, so it was an empty device without data.

---

<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:** [April 29, 2025, 1:03pm UTC](https://forums.unrealengine.com/t/if-statement-does-not-run-on-vector3/2429001/3 "2025-04-29T13:03:39Z")

</div>

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