Help! why is this giving me an error?


WHY WONT IT WORK???

3 Likes

You see, the little " " symbols in the white space (in the if statement) where you put the number mean that it is for TEXT input. You put a number in there when you should have put text.
Screenshot 2025-03-20 14.38.30
This is the IF block that you’re looking for.

1 Like

That is inside a string, and tggg is a number. Look at this bit.
Screenshot 2025-03-21 at 07.34.10
Notice a difference between them? One has quotes, drag a math block with the number 0 in it and nothing else into the “2” spot.

Your putting a number value and a text value in the same comparison Boolean.
Swap out the text value with a number value and it
should
work.
(The rightmost value)

1 Like

Hi, it is not working because tggg is a number, and in the if loop, you are comparing it with a string. To know if you are comparing against a string or a number, look at this picture:

1 Like

You are trying to compare a “number” (tggg) to a string (“2”)

The quotes around the “2” make it a string… can you remove the quotes so 2 is recognized as a number?

1 Like