If...then statement evaluating incorrectly


#1

Hi!

We’ve been trying to get the “8” figure program to work and used a few if…then conditions in our program. But they are evaluating wrongly. The conditions >, < or = always evaluate to false and goes to else part. [See attachment]
if-then-scratch

Any help is greatly appreciated!


#2

image
drag variable “light” instead of typing word “light” here.


#3

Thank you! A suggestion- I think there should be an error message in these cases. Otherwise, it is tough to debug.


#4

Thank you for the suggestion.