# Hello, I have a problem with Versa. I have a code that I got from ChatGPT, but I put the code and make a build that deletes the code.

**URL:** <https://forums.unrealengine.com/t/hello-i-have-a-problem-with-versa-i-have-a-code-that-i-got-from-chatgpt-but-i-put-the-code-and-make-a-build-that-deletes-the-code/2390434>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 14, 2025, 11:27pm UTC](https://forums.unrealengine.com/t/hello-i-have-a-problem-with-versa-i-have-a-code-that-i-got-from-chatgpt-but-i-put-the-code-and-make-a-build-that-deletes-the-code/2390434 "2025-03-14T23:27:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ksa\_saa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ksa\_saa](https://forums.unrealengine.com/u/Ksa_saa)\
**Post date:** [March 14, 2025, 11:27pm UTC](https://forums.unrealengine.com/t/hello-i-have-a-problem-with-versa-i-have-a-code-that-i-got-from-chatgpt-but-i-put-the-code-and-make-a-build-that-deletes-the-code/2390434/1 "2025-03-14T23:27:23Z")

</div>

![لقطة الشاشة 2025-03-13 214838](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/4/d94848eea557559ef337f4d1cee66551592658b3.jpeg)

---

<div class="post-metadata">

**Author:** ![Soy\_Ema\_31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soy\_Ema\_31](https://forums.unrealengine.com/u/Soy_Ema_31)\
**Post date:** [March 15, 2025, 12:07am UTC](https://forums.unrealengine.com/t/hello-i-have-a-problem-with-versa-i-have-a-code-that-i-got-from-chatgpt-but-i-put-the-code-and-make-a-build-that-deletes-the-code/2390434/2 "2025-03-15T00:07:45Z")

</div>

The code that ChatGPT gives you will always have issues because it doesn’t have enough knowledge about Verse. So, I recommend checking the official documentation or watching YouTube tutorials—there are plenty of them!

To handle a `case` that evaluates a string parameter, you can do it like this:

```auto
Funct(String:string):void=
        case(String):
            "Double Jump"=> #Do something
            "Invisibility"=> #Do something
            _=> # This works as a default (like an else)

```

---

<div class="post-metadata">

**Author:** ![Soy\_Ema\_31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soy\_Ema\_31](https://forums.unrealengine.com/u/Soy_Ema_31)\
**Post date:** [March 15, 2025, 12:12am UTC](https://forums.unrealengine.com/t/hello-i-have-a-problem-with-versa-i-have-a-code-that-i-got-from-chatgpt-but-i-put-the-code-and-make-a-build-that-deletes-the-code/2390434/3 "2025-03-15T00:12:48Z")

</div>

This is a list of YouTube creators that can help you:  
Pi Equals Three  
Warforge  
hawaiifilmschool  
MaestroShark  
Graeme Bull
