PDA

View Full Version : false syntax error ?



cgirolet
11-19-2003, 11:44 AM
hello

many time ams5 is reporting an error and i can't figure why

i tried to test internet connection, so i did that

result = http.TestConnection("http://www.mysite.com", 20, 80, nil, nil);

if result = true then
connection =1
else
connection = 0
end

and ams is reporting a syntax error in the "if" line,sometimes it reports that then is missing when i tried if (result = true) then, another synthax error is reported where i am wrong ? i got many kind of error like that, is that a bug ?

thanks

claude
:confused: :confused: :confused:

Brett
11-19-2003, 11:47 AM
should be:

if result == true then

cgirolet
11-19-2003, 01:53 PM
Thanks Brett,

I'm a newbie in ams5 scripting this is why i made this kind of error, i was usede to basic language when the equality is = not ==

claude