SyntaxFix
Write A Post
Hire A Developer
Questions
You could simply have: var result = (str == "true").
var result = (str == "true")