Lesson 13 Activity 10

I was successful in completing the directions of this activity by using a (mouseDown(“leftButton”) == false). But I received a "suggestion (read yellow triangle) telling me I should be “Use ‘===’ to compare with false”.

I do not see this operator listed in the Math toolbox.

Please advise.

You can ignore that warning. The === does a more strict comparison. For example 1 == "1" would return true, but 1 === "1" is false. We use the the == block because it’s more forgiving and usually does what a student would expect. The warning is basically telling you that you should be more specific when you can be, but because we don’t provide that block it’s a bit odd. I’ll suggest to our engineering team that we either remove the warning altogether or change the wording so that it makes more sense.

1 Like