12-14-2021 11:43
12-14-2021 11:43
Best Answer12-14-2021 11:51
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
12-14-2021 11:51
Not = 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. 🙂
12-14-2021 13:06
12-14-2021 13:06
oh, cool. Thanks!
Best Answer12-15-2021 07:30
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
12-15-2021 07:30
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).