if statement inside while loop

wvmarle:
Error message suggests you have a } too many.

And yes, you can also write it like that.

haha never knew that thanks for that, do you know any site or things to search for so i know the error codes better and know what they mean? Cause just googeling the error doesnt work for me they are a bit diffrent and the solutions dont work for me then.