Verse Library verse

01 Failure In Set

Shows safe variable assignment using default values for handling failable expressions.

extracted-snippets/documentation/en-us/uefn/verse-language-version-updates-and-deprecations-in-verse/01-failure-in-set.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/verse-language-version-updates-and-deprecations-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/verse-language-version-updates-and-deprecations-in-verse.md
# Section:    Failure in Set
var X:int = 0
Value:= FailableExpression[] or DefaultValue
set X = Value

Comments

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