help with if statement
Something doesn't look right with the condition that you are using to control when the outline around ''It's positive'' is drawn. It isn't making any comparisons like
<
,>
, or ===
. It won't be able to tell if theNumber
is positive, if it doesn't make any comparisons. This is how I declare the variable, hoping to get a positive answer, but I keep getting the above error. I don't know what i'm doing wrong. Help plz. Thanks!
var theNumber = 20;
fill(0, 0, 0);
textSize(30);
text("Analysis of: " + theNumber, 10, 36);
text("It's positive", 10, 90);
if (theNumber <25) {
rect(5, 110,200, 40);
}
Please sign in to leave a comment.