Leading Zero in Conditional with Minutes and Other

hi all

I have 2 questions, the first is more important :slight_smile:

I have 2 conditionals which show the previous minute and the minute after now but when it’s in the range 0-10 I want it to have a leading Zero, not just one number…But I can’t figure out how…

my previous minute conditional is
$#DmZ#<1?‘59’:#DmZ#-1$

if it’s 0 it shows 59 or else actual minute minus 1, but at 09 for example it shows 8 but I want 08. the same goes to the next minute…
$#DmZ#=59?‘00’:#DmZ#+1$

The second question (I don’t know if it goes in this section) is that I want a black overlay that fades from the top to the bottom or vice versa to cover these minutes… how can I achieve that, instead of just create an image like that an upload it to the creator.

thank you in advance!!
Nikos

I ended up with this
$#DmZ#=0?‘59’:$$#DmZ#=1?‘00’:$$#DmZ#=2?‘01’:$$#DmZ#=3?‘02’:$$#DmZ#=4?‘03’:$$#DmZ#=5?‘04’:$$#DmZ#=6?‘05’:$$#DmZ#=7?‘06’:$$#DmZ#=8?‘07’:$$#DmZ#=9?‘08’:$$#DmZ#=10?‘09’:#DmZ#-1$

for the minus 1
and this
$#DmZ#=59?‘00’:$$#DmZ#=0?‘01’:$$#DmZ#=1?‘02’:$$#DmZ#=2?‘03’:$$#DmZ#=3?‘04’:$$#DmZ#=4?‘05’:$$#DmZ#=5?‘06’:$$#DmZ#=6?‘07’:$$#DmZ#=7?‘08’:$$#DmZ#=8?‘09’:#DmZ#+1$

for the plus 1

But I would really like to know the faded overlay one…