# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/logic-in-verse
# Local doc: epic-docs/documentation/en-us/uefn/logic-in-verse.md
# Section: Comparison
# Initialize logic variables for demonstration purposes.
var TargetLocked : logic = false
var WeaponEquipped : logic = true
# Determine whether or not the "unavailable action" icon is appropriate.
if (WeaponEquipped <> TargetLocked):
# The icon should show up, because the player appears to be trying to
# attack, but is missing either a weapon or a target.
ShowUnavailableIcon()
Verse Library
verse
02 Comparison
Determines when to display an unavailable action icon based on weapon and target states.
extracted-snippets/documentation/en-us/uefn/logic-in-verse/02-comparison.verse