SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
if (Boolean.TRUE.equals(yourValue)) { ... }
As additional benefit this is null-safe.