Best AnswerNot = but == or ideally ===
I think that permissions return boolean, so I wouldn't use strings for "false", etc.
Your post was hard to read; it would be great if you could format text snippets as code. 🙂
oh, cool. Thanks!
Best Answer
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
One of the most common mistakes and hard to find. Never use = in an if-statement. I even avoid it because of this mistake.
And when an expression is boolean then use if ( !expression) or if (expression).