Verse Library verse

03 Nested Loop Expressions

Demonstrates nested loops and using break to exit only the inner loop iteration.

extracted-snippets/documentation/en-us/uefn/loop-and-break-in-verse/03-nested-loop-expressions.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/loop-and-break-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/loop-and-break-in-verse.md
# Section:    Nested Loop Expressions
# 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.
expression0
    # outer loop
    loop:
        expression1
        # inner loop
        loop:
            expression2
            if (test-arg-block0):
                # exit inner loop
                break

Comments

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