Pages: 1
Topic closed
I was making a game but then i needed some thing to be in between i was making money but theres a glitch to have negitive money and i dont want that to happen so i decided to make something so if the amount of money you have is in between -1000000 to 0 then it will say ilegal buy gameover but i dont know what an in between symbol is i looked all over the operator tab but i dont know what the symbol is please help
Offline
Offline
If you need the check whether the number is less than 0 (negative number), use this block in the operators category:
Just place the variable (money, I assume) in the left and 0 in the right, and Scratch will interpret it kinda like "is money less than 0?" which can, of course, be true or false (that's called a "boolean" in programming lingo ).
Offline
technoguyx wrote:
If you need the check whether the number is less than 0 (negative number), use this block in the operators category:
Just place the variable (money, I assume) in the left and 0 in the right, and Scratch will interpret it kinda like "is money less than 0?" which can, of course, be true or false (that's called a "boolean" in programming lingo ).
Oh, I misunderstood the question. Technoguyx is correct.
Offline
Topic closed
Pages: 1