Computer Science Canada Turing Game Help Needed [Problem with using the Larger Than and Smaller Than Signs (<,>) |
Author: | sliverofshadows475 [ Wed Dec 24, 2008 12:03 pm ] | ||||
Post subject: | Turing Game Help Needed [Problem with using the Larger Than and Smaller Than Signs (<,>) | ||||
Hey guys, I'm having a bit of trouble with the Smaller and Bigger Than signs. Here's the part I need help with. My Code:
What I would like to do:
It's on lines 1434-1437. The thing is, Turing won't allow me to use the < sign. I want it to drawbox when the health is 0 or lower. How could I fix this? Any help would be appreciated. Thanks in advance. |
Author: | Insectoid [ Wed Dec 24, 2008 12:09 pm ] |
Post subject: | RE:Turing Game Help Needed [Problem with using the Larger Than and Smaller Than Signs (<,>) |
The proper operator is <=. 'if this is less than or equal to that, do this'. |
Author: | sliverofshadows475 [ Wed Dec 24, 2008 12:10 pm ] |
Post subject: | Re: Turing Game Help Needed [Problem with using the Larger Than and Smaller Than Signs (<,>) |
Thank you very much, exactly what I needed! ![]() |