I looks like I have it formatted correctly. The value displayed over the opacity section says $true?100:0$ rather than just 100. That is, the condition is being calculated and renders true, but the expected result of opacity 100 is not the final value.
All decent suggestions. I swear I tried without the extra parenthesis and it wasn’t yielding a true, but I’ll try again.
I did not notice the extra space before 22 so that’s worth checking. It did yield a true so I didn’t suspect that part too much. Certainly worth trying.
“=” and “==” are supposed to be interchangeable according to the reference, but that does make a difference in Javascript so I may or may not have tried that as well. I’ll have another look.