# building verse code using "or" with an int divided by int on the left and float on the right crashes UEFN  

**URL:** <https://forums.unrealengine.com/t/building-verse-code-using-or-with-an-int-divided-by-int-on-the-left-and-float-on-the-right-crashes-uefn/2347037>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, crash, fortnite\
**Created:** [February 20, 2025, 5:56pm UTC](https://forums.unrealengine.com/t/building-verse-code-using-or-with-an-int-divided-by-int-on-the-left-and-float-on-the-right-crashes-uefn/2347037 "2025-02-20T17:56:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harlsthefirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@harlsthefirst](https://forums.unrealengine.com/u/harlsthefirst)\
**Post date:** [February 20, 2025, 5:56pm UTC](https://forums.unrealengine.com/t/building-verse-code-using-or-with-an-int-divided-by-int-on-the-left-and-float-on-the-right-crashes-uefn/2347037/1 "2025-02-20T17:56:49Z")

</div>

### Summary

when you write verse code involving an integer division on the left of an “or” and a float on the right of the “or” the code builds and crashes uefn.

### Please select what you are reporting on:

Unreal Editor for Fortnite

### What Type of Bug are you experiencing?

Verse

### Steps to Reproduce

1. create new a new verse device called crash\_test\_device

2. paste the following code:

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

crash_test_device := class(creative_device):

    OnBegin<override>()<suspends>:void=
        X := 1
        Y := (X / 10) or 0.0

```

1. build verse

### Expected Result

the code should not build due to the syntax error

### Observed Result

the code builds and UEFN crashes, doing so every time the project is loaded.

### Platform(s)

windows

---

<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:** [August 19, 2025, 5:57pm UTC](https://forums.unrealengine.com/t/building-verse-code-using-or-with-an-int-divided-by-int-on-the-left-and-float-on-the-right-crashes-uefn/2347037/2 "2025-08-19T17:57:16Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
