How do I write an expression to satisfy 2 conditions?
100% opacity is required when
((#Db#*60)+#Dm#)>90
and
((#Db#*60)+#Dm#)<151
Tried this but I am obviously getting something mixed up
$((#Db#*60)+#Dm#)>90?&&((#Db#*60)+#Dm#)<151?100:00$
How do I write an expression to satisfy 2 conditions?
100% opacity is required when
((#Db#*60)+#Dm#)>90
and
((#Db#*60)+#Dm#)<151
Tried this but I am obviously getting something mixed up
$((#Db#*60)+#Dm#)>90?&&((#Db#*60)+#Dm#)<151?100:00$
If there’s no mistake, it should look like this, you have an extra “?”
$((#Db#*60)+#Dm#)>90&&((#Db#*60)+#Dm#)<151?100:00$
Oooh, that’s cool! Didn’t know we could apply &&, will save me creating duplicate layers with alternative opacity conditions… Nice one!
Just be careful ; not all watch models (mostly those running WearOS) play nice with complicated conditionals like this. Sometimes it works, sometimes not… YMMV.