Remember hasTail is boolean variable that can be used as an expression. Sense you want to use a control statement on that particular variable, if(!hasTail) and if(hasTail) is a viable option.
Type: Posts; User: Zyrion
Remember hasTail is boolean variable that can be used as an expression. Sense you want to use a control statement on that particular variable, if(!hasTail) and if(hasTail) is a viable option.
Your using '=' instead of the equality operator '=='. Like Beavis said you do not need to test a true or false value in your if-statement but use the variable itself.