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

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 documentation

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

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

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)

Source

Epic Games documentation

View original

Last updated 2026-05-12T21:48:50.936493+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

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