PDA

View Full Version : issue with if then statements


ultraz57
09-19-2006, 09:02 AM
ok, what am I doing wrong?

if Flat = True then
result = File.Run("c:\\drivers\\iPass35\\iPass321_flat\\setup.exe", "-s -f1c:\\drivers\\iPass35\\iPass321_flat\\setup.iss", "", SW_SHOWNORMAL, false);
end

when I run that, it says Line=5: 'then' expected near '='

what am I doing wrong? HELP!

Brett
09-19-2006, 09:42 AM
Use "==" for equality testing. Also, check for "true", not "True":


if Flat == true then
result = File.Run("c:\\drivers\\iPass35\\iPass321_flat\\set up.exe", "-s -f1c:\\drivers\\iPass35\\iPass321_flat\\setup.iss", "", SW_SHOWNORMAL, false);
end

ultraz57
09-20-2006, 03:08 PM
thanks I got this a few min's after posting this, just forgot to reply :-)