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.