Windows NT supports the IF test (TrueCommand) ELSE (FalseCommand) syntax.

Pseudo code example:

if "%UserStatus%"=="Helped" (goto ThankYou) else (goto WhyNot)

Other examples:

if not exist c:\boot.ini (@echo don't reboot) else (shutdown.exe)