Im not able to set an input to "checked" if e.g. a string is not null. I have no idea why, I googled a lot but nothing worked. This was the best I found but is seems to be wrong... at least it doesn't work for me.
This is the code I have for now:
<input type="checkbox" name="autowarn" value="checked" @if(autowarnVar != null){checked}>
IntelliJ tells me that the Tag is not closed, but it is, so where is the mistake?.. I haven't worked much with play until now, but I have other examples where it works, so I'm confused why it sometimes works an sometimes not?