You know, all these Windows programming languages have so much in common. It is just always a bumpy ride for me to learn the other ones though. [Frown]

Why would this throw an error when a user clicks "NO"?
code:
$message = "This is the message body question?"

$title = "This is the title text"

$Selection = MessageBox($message,$title,4096+4+48+256,300)

If $Selection = 7
Run @LDRIVE + "Logoff.exe /n"
EndIf

If $Selection = -1
Run @LDRIVE + "Logoff.exe /n"
EndIf

I get the following error message if the "No" button is clicked:

ERROR : unknown command [END]!
Script: (script path)
Line : 24