I can understand cases when you will want to convert an object value to a boolean and save it in a variable. However, I came across the following code in a jQuery template and was wondering if the !! (double exclamation operators) is even necessary.
{{if !!sectionId}} // do something... {{/if}} I am assuming that it is not since Javascript will automatically evaluate the expression following the if as boolean. Therefore, you could just write:
{{if sectionId}} // do something... {{/if}} Am I right in my assumption?