Page 1 of 1

adding a greater than to an if statement

Posted: Thu Mar 29, 2012 12:16 pm
by jizzle
Hi all,
this may sound silly but I just cant seem to get a bit of code to work so that it works when the score is equal to or greater than 5000...the code is:
--

if field "scorefield" is > 5000 then
go to card "liver intro"

--
but the ><= signs bring back errors.

can anyone help please :D

Re: adding a greater than to an if statement

Posted: Thu Mar 29, 2012 12:30 pm
by Klaus
Hi jizzle,

as always, you can translate it literally into LiveCode
Greater >
& Equal =

if fld "score" >= 5000 then
...
:D


Best

Klaus

Re: adding a greater than to an if statement

Posted: Thu Mar 29, 2012 12:38 pm
by jizzle
Thanks for the quick reply. It was the is befor the <>= that was causing troubles.

Regards
Jizzle