VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › Verse Language · Up to Fortnite · Verse Language · 12 of 570 in Verse Language
Browse Fortnite

Basics of Writing Code 5 Calling Functions in Verse

So far, you've learned how to create constants and variables to store and use values, and how to make decisions in code using the if expression and decision operators like and and or.

Now it's time to learn how to write code that you can easily reuse in your program.

Remember from Lesson 2 that an expression is the smallest unit of code that produces a result? And that when an expression executes and outputs a value, that the value that it outputs is the result?

You can take advantage of this to make your code more efficient.

Expressions can be combined with other expressions to create functions, and functions can be used over and over in your code without having to rewrite what they do each time.

Using Expressions in Functions

A function (also referred to as a routine) is reusable code that provides instructions for performing an action, or for creating an output based on input.

Functions are made up of combined expressions.

To define a function, you need:

  • A unique name, or identifier.
  • The type of information that will result.
  • What the function will do when it is called.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in Verse Language · 12 of 570
    Prev
    basics of writing code 4 writing simple code in verse
    Next
    basics of writing code 5 practice time in verse
    Browse all files in this folder (A–Z)
    Next up
    • Remember from [Lesson 2
    • Lesson 5: Practice Time!
    Related topics
    • Learn Code Basics 5 Writing Reusable Code In Verse Verse Language
    • Basics Of Writing Code 6 Defining A Function In Verse Verse Language
    • Learn The Basics Of Writing Code In Verse Verse Language
    • Learn The Basics Of Writing Code In Verse Verse Language
    • Basics Of Writing Code 4 Writing Simple Code In Verse Verse Language

    Related

    Open in graph →

    Related topics

    • Learn Code Basics 5 Writing Reusable Code In Verse
    • Basics Of Writing Code 6 Defining A Function In Verse
    • Learn The Basics Of Writing Code In Verse
    • Learn The Basics Of Writing Code In Verse
    • Basics Of Writing Code 4 Writing Simple Code In Verse
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse