This site requires JavaScript, please enable it in your browser!
Greenfoot back
Windows10
Windows10 wrote ...

2015/11/7

What is the error if (points <0 &&> 20) in Greenfoot?

Windows10 Windows10

2015/11/7

#
What is the error if (points <0 &&> 20) in Greenfoot?
davmac davmac

2015/11/7

#
It's not valid syntax, and it doesn't make logical sense either. You possibly want:
if (points > 0 && points < 20)
That is "if points is greater than 0 and points is less than 20".
You need to login to post a reply.