Verse Library verse

01 Any

Defines an enumeration and a custom class, demonstrating instance creation and conditional value selection.

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

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/any-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/any-in-verse.md
# Section:    Any
Letters := enum:
A
B
C
letter := class:
Value : char
Main(Arg : int) : void =
X := if (Arg > 0)
Letters.A
else
letter{Value := 'D'}

Comments

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