mycommand=%command% myothercommand=%command2% myotherothercommand=%command3% IfCommand = 1 { MsgBox, success } else IfCommand2 = 1 { MsgBox, failure } else IfCommand3 = 1 { MsgBox, nothing } ExitApp