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

Block in Verse

Since Verse requires an identifier before a code block, block expressions are how you nest code blocks, and block expressions behave similarly to code blocks.

As with code blocks, block introduces a new nested scope body, constraining the lifetimes of any variables created in the block in a way that they cannot be used outside of the block.

|  |  |
| --- | --- |
|  | expression0 |
|  | block: |
|  | expression1 |
|  | expression2 |
|  | expression3 |

expression0 block: expression1 expression2 expression3

Copy full snippet(5 lines long)

 Diagram

Unless there is an early exit, the block expression uses the last expression executed in the block as its result. For example, if the last expression in the block is Example : int = 6 then the block expression has 6 as a result.

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 Mar 8, 2026
    Keep exploring
    More in Verse Language · 20 of 570
    Prev
    basics of writing code 9 practice time in verse
    Next
    branch in verse
    Browse all files in this folder (A–Z)
    Next up
    • Since Verse requires an [identifier
    • Code Blocks In Verse
    Related topics
    • Block In Verse Verse Language
    • Verse Language Quick Reference Verse Language
    • Verse Glossary Verse Language
    • Verse Language Reference Verse Language
    • Verse Glossary Verse Language

    Related

    Open in graph →

    Linked docs

    • Verse Glossary
    • Code Blocks In Verse

    Related topics

    • Block In Verse
    • Verse Language Quick Reference
    • Verse Glossary
    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