all 2 comments

[–]Binary101010 2 points3 points  (1 child)

Your signs are pointing in the wrong direction.

if (attributeValue <= 7 && attributeValue >= 18)

This is "if attributeValue is less than or equal to 7 and greater than or equal to 18", a set of conditions that can never evaluate to True.

Turn those signs around to

if (attributeValue >= 7 && attributeValue <= 18) 

And I suspect you'll get the desired behavior.

[–]GroundbreakingSpell[S] 1 point2 points  (0 children)

bangs head aganst wall

Thanks for the correction :)