Math on day strings?

This may seem silly, but I’d like to add a day to Day of week (#DE#). Reason for this is I’m utilizing the weather forecast strings, and I’d like to head them with the day of the week.
#WFACT# is forecast for tomorrow, so I’d like to say #DE#+1, but that does not work. Anyone know a way around it? I want to have 3 or 4 days out. The only partial solution I came up is to use the numeric day of the week, so
‘$(#DOW#+1)=1?“Mon”:$’ will print “Mon” (Tomorrow’s name) if it is currently Sunday. The problem with this is I cannot figure out how to get the rest of the days in there, possibly part of the else statement, or is there a better way?

try this one… worked for me.

$#DOW#=0?Sun:$$#DOW#=1?Mon:$$#DOW#=2?Tue:$$#DOW#=3?Wed:$$#DOW#=4?Thu:$$#DOW#=5?Fri:$$#DOW#=6?Sat:$

1 Like