In my app, I want something to happen if the background picture is a specific one. I tried to do this:
But, it is not working. I also tried the blue number block in the math category (
) instead of the pink block, but I can only type numbers in that, and not letters. Any way to solve this?
Not sure but I think right now, youâre trying to compare different data types. Your statement there says something like âIf this picture right here looks like â3D1â thenâŚâ Which doesnât make sense.
Can you store the image you want to compare against in an app variable and then compare 3DShapesIntroâs Background Picture to the variable instead?
Yeh, I get that. But Iâm pretty sure that not what your code is saying. Youâre not comparing the âname of 3DShapesIntroâs background pictureâ, youâre seeing if the image itself is the same as the text. Theyâre not the same data type.
Try storing the image you want to compare as a variable and then comparing the current background image to it.