Verse Library verse

01 Snippet

Demonstrates basic enum and class declarations alongside conditional if-statement syntax for learners.

extracted-snippets/documentation/en-us/fortnite/any-in-verse/01-snippet.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/any-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/any-in-verse.md
# WARNING: Epic's page marks this snippet as click-to-expand. Only the preview portion was captured by the crawler — the full body is NOT in the markdown.
Letters := enum:
    A
    B
    C

letter := class:
    Value : char

    Main(Arg : int) : void =
        X := if (Arg > 0)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in