# GetFortCharacter\[\]? GetFortCharacter()?

**URL:** <https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [June 3, 2024, 8:32am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893 "2024-06-03T08:32:39Z")\
**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:** [June 3, 2024, 8:32am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893/1 "2024-06-03T08:32:39Z")

</div>

I read in the documentation that GetFortCharacter is a method. However, when calling and using GetFortCharacter, it said that square brackets are needed like GetFortCharacter. Why are the square brackets necessary? If it’s a method, it should be like GetFortCharacter(), which is common in other programming languages, right?

---

<div class="post-metadata">

**Author:** ![KeyserScholze](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/keyserscholze/32/1194700_2.png) [@KeyserScholze](https://forums.unrealengine.com/u/KeyserScholze)\
**Post date:** [June 3, 2024, 9:17am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893/2 "2024-06-03T09:17:23Z")

</div>

> **[Verse Glossary | Unreal Editor For Fortnite Documentation | Epic Developer...](https://dev.epicgames.com/documentation/uefn/verse-glossary#:~:text=See%20brackets.-,brackets,-Brackets%20are%20used)**
>
> Ready to start learning Verse? This glossary is here to help!

I’m new to verse but as i understand it, square brackets for a function call indicate that it can fail and therefore should be contained within an “if” statement (to handle any failure that may occur)

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [June 4, 2024, 3:05am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893/3 "2024-06-04T03:05:19Z")

</div>

KeyserScholze is correct. It is a method, but it is also a “failable expression,” and Verse requires that failable expressions be called conditionally (usually with an IF or FOR expression) and square brackets must be used. Coincidentally, in Verse, calling arrays are also failable expressions and are called conditionally with brackets as well. Since an array might not return a value, it can fail and is allowed to fail, but in what they call a failure context. While Verse has many similarities to other programming languages, it is also unique in many ways and has many guardrails to prevent runtime errors.

---

<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:** [June 5, 2024, 8:28am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893/4 "2024-06-05T08:28:18Z")

</div>

I didn’t realize the syntax was needed for when the function fails. Thank you for your help.

---

<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:** [June 5, 2024, 8:29am UTC](https://forums.unrealengine.com/t/getfortcharacter-getfortcharacter/1886893/5 "2024-06-05T08:29:27Z")

</div>

Thank you very much for explaining in such detail. The Verse programming language is difficult, but I want to learn it step by step.
