Need help on the IF-statement

Yes you can. You need brackets surrounding the conditions as you have in loop but they are missing from the example above it.

The C and operator is &&, not and although as you can see, it does compile.

As an example it's fine but there is no point to the check you're doing in this case of course - if the value is greater than fifty, you already know it isn't zero.