Ladies and gents, I’m wrecking my brain over a conditional tag.
I have two sets of hour+Minute hands that should display sunset or sunrise time respectively on one and the same dial, depending on the current time.
If current time > sunrise = display sunset time
if current time > sunset = display sunrise time
With “display” I mean setting opacity of one minute/hour set to 100, of the other to 0.
Is this at all possible? My problem is “current time”. I’d have tried with logical operators, but I’d have to string two "&&"s together (hours and minutes).
Did someone do something like this?
1 Like
This will do SR/SS and cater for both 12h and 124h preferences.
$#DISDAYTIME#==true&&#DTIMEFORMAT#==12?#WSh#:$$#DISDAYTIME#==true&&#DTIMEFORMAT#==24?#WSHZ#:$$#DISDAYTIME#==false&&#DTIMEFORMAT#==12?#WRh#:$$#DISDAYTIME#==false&&#DTIMEFORMAT#==24?#WRHZ#:$:$#DISDAYTIME#==true?#WSmZ#:#WRmZ#$
See:
For a rotary dial version see this. The next event is in gold:
4 Likes
Whoa! That was fast, thx a lot! <3 Gotta try this a.s.a.p.!
2 Likes
I borrowed the snippet
$#DISDAYTIME#==true?100:0$
from your rotary dial example, and it works just fine using “true” or “false” respectively with #WSh#/#WSm# and #WRh#/#WRm#.
Thanks a lot!
2 Likes