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 · 11 of 570 in Verse Language
Browse Fortnite

Basics of Writing Code 4 Writing Simple Code in Verse

At the end of this lesson, you'll get a chance to actually start writing simple code — not just editing something that's already there!

But first, a little more info.

What Good Programmers Do (Instead of Remembering)

An experienced programmer will make notes in the code that are not actually part of the program, but comments about what they did or why they did it. When the program runs, these comments are ignored, but the programmer's notes, called code comments or just comments, stay in the code.

Code Comments

Writing code comments is good practice in general, but is especially useful when you're just starting to program and figuring things out as you go. These comments can be really helpful when you try to understand why you (or someone else) did something.

The simplest way to write a code comment is to put a # in front of the comment, but there are also other ways to do it:

1+2 # Hello 1+2 # Hello Copy full snippet(1 line long) single-line comment: Anything that appears between # and the end of line is part of the code comment.
1<# inline comment #>+2 1<# inline comment #>+2 Copy full snippet(1 line long) inline block comment: Anything that appears between <# and #> is part of the code comment. Inline block comments can be between expressions on a single line and don't change the expressions.
```
<# Block comments nest <# like this #> #> <# Block comments nest <# like this #> #> Copy full snippet(1 line long) nested block comment: Anything that appears between <# and #> is part of the code comment, and they can nest. This can be useful if you want to comment out some expressions in a line for testing and debugging without changing an existing code comment.
```

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 · 11 of 570
    Prev
    basics of writing code 4 practice time in verse
    Next
    basics of writing code 5 calling functions in verse
    Browse all files in this folder (A–Z)
    Next up
    • Remember those `if .. else` expressions you saw in [Lesson 2
    • Remember in [Lesson 1
    • Lesson 4: Practice Time!
    Related topics
    • Basics Of Writing Code 4 Writing Simple Code In Verse Verse Language
    • Learn Code Basics 4 Writing Simple Code In Verse Verse Language
    • Learn The Basics Of Writing Code In Verse Verse Language
    • Basics Of Writing Code 2 Basic Programming Concepts In Verse Verse Language
    • Learn The Basics Of Writing Code In Verse Verse Language

    Related

    Open in graph →

    Related topics

    • Basics Of Writing Code 4 Writing Simple Code In Verse
    • Learn Code Basics 4 Writing Simple Code In Verse
    • Learn The Basics Of Writing Code In Verse
    • Basics Of Writing Code 2 Basic Programming Concepts In Verse
    • Learn The Basics Of Writing 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