adding a greater than to an if statement

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jizzle
Posts: 10
Joined: Fri Mar 16, 2012 4:31 pm

adding a greater than to an if statement

Post by jizzle » Thu Mar 29, 2012 12:16 pm

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: adding a greater than to an if statement

Post by Klaus » Thu Mar 29, 2012 12:30 pm

Hi jizzle,

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

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


Best

Klaus

jizzle
Posts: 10
Joined: Fri Mar 16, 2012 4:31 pm

Re: adding a greater than to an if statement

Post by jizzle » Thu Mar 29, 2012 12:38 pm

Thanks for the quick reply. It was the is befor the <>= that was causing troubles.

Regards
Jizzle

Post Reply