Verse Library verse

02 Nesting

Demonstrates fundamental if and else statements for simple two-path conditional branching.

extracted-snippets/documentation/en-us/uefn/basics-of-writing-code-4-writing-simple-code-in-verse/02-nesting.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/basics-of-writing-code-4-writing-simple-code-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/basics-of-writing-code-4-writing-simple-code-in-verse.md
# Section:    Nesting
if (Tired?):
set WhatToWatch = "your eyelids"
else:
set WhatToWatch = "cartoons"

Comments

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