Jump to content
Sign in to follow this  
L.Trale

Problem with if then

Recommended Posts

I've tried and tried to figure this out, but I can't seem to find the problem.

if (myVariable = 30) then {hint "At"} else {hint "Below"};

If I use the "<" or the ">", it works perfectly fine. I guess you can't use the Equal sign?

Any help would be great.

Share this post


Link to post
Share on other sites

does it work with

if (myVariable 30) then {hint "At"} else {hint "Below"};

?

Share this post


Link to post
Share on other sites
in a comparison use "=="

"=" this is an allocation

Works, thanks!

---------- Post added at 03:39 ---------- Previous post was at 03:37 ----------

I was making a Combination lock, if you guys want the codes just ask :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×