First of all, is it even possible to write if/else statements directly in html with onclick attribute? And if so, why is my code not working?
So this is a button. T
Just DON'T put it in the onclick attribute.
Use