# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/if-in-verse
# Local doc: epic-docs/documentation/en-us/fortnite/if-in-verse.md
# Section: Predicate Requirements
Main(X : int) : void =
Y = array{1, 2, 3}
if:
Z0 := Y[X]
Z1 := Y[X + 1]
then:
Use(Z0)
Use(Z1)
Verse Library
verse
09 Predicate Requirements
Demonstrates Verse conditional syntax for safely indexing arrays and binding variables before execution.
extracted-snippets/documentation/en-us/fortnite/if-in-verse/09-predicate-requirements.verse