Hey, kinda a noob question,
Is there any way to use an IF block to test the value of a variable?
So, in a practical example,
IF (Variable=1)
do stuff here...
ELSE
do other stuff here
Is there any way to do this, that I am missing, or are there any other viable alternatives? Any help appreciated.
Offline
HELLO BELLO EVEWEEBUHDDY.
This is how you do it:
<when green flag clicked>
<forever>
<if><( Name of variable <=> 1)>
do whatever
<end>
... Or at least I hope so. Anyway, the blocks in the posts are confusing and I can only post every 10 minutes, so if I get it wrong ... yeah.
___________________________(signature number 1)
YAY I HAVE 2 SIGNATURES NOW!
Offline
You can find the "blahblah=1" block in Operators (or in 1.3 it's called Numbers).
Anyway, if you've said "Thanks" or something by the time this has been posted, "You're welcome". And if you need anything else I might reply in 20 minutes, I want to reply to another post and then if somebody else hasn't already answered your questions I probably will reply.
Ohkay?
Offline
2l84zwamani got it.
One more thing: the "if" blocks are in the Control blocks section. And of course, only use the forever block if you need it to check infinitely. Otherwise, put the "if" wherever you need it in your scripts.
Offline