@if
- Last Updated: July 8, 2022
- 1 minute read
- WhatsUp Gold
- Version 2026
- Version 2025
- Version 2024
- Version 2023.1
The @if command checks to see if a variable exists. If the variable exists, the lines of script following @if <variable> are executed until @endif is reached in the code. If the variable following @if does not exist, the proceeding lines of script are skipped until @endif is reached.