I want to have the minutes and above that I want minutes minus 1 and below that minutes plus 1.

Question time:

So #DmZ# is minutes with leading zero. how do I do (#DmZ#+1) but instead of it saying 60 say 0 and the same with instead of -1 say 00.

Also (#DmZ#+1) and (#DmZ#-1) drop the leading zero.

Thanks

Ok so I figured out half of it with conditionals

\$#DmZ#==00?59:(#DmZ#-1)\$ shows 59 or the right number
\$#DmZ#==59?00:(#DmZ#+1)\$ show 0 or the right number

however both still drop the leading 0

As far as I can see, #DmZ# is Minutes With Leading 0, and #Dm# is just Minutes
Hope this helps you out dragon2777

I understand that but if you do (#DmZ#-1) it show 6 not 06. It drops the leading zero

I canâ€™t explain that sorry, I donâ€™t know the Math side of things too well

@dragon2777 #DmZ# is display only and doesnâ€™t really work with conditionals. Iâ€™m sure thereâ€™s a more elegant way of achieving this but if you have a layer with:

Text: `\$#Dm#<11?(0)(#Dm#-1):(#Dm#-1)\$`
Opacity: `\$#Dm#=0?0:100\$`

And another layer in the same location with:

Text: `59`
Opacity: `\$#Dm#=0?100:0\$`

It should work for your â€śprevious minuteâ€ť.

1 Like

Thanks for the info on display vs math. Iâ€™m not paying for pro so I donâ€™t think I have layers (not home canâ€™t check) however you did give me an idea using opacity. Right align the minutes and just put a 0 next to it and set opacity ok the 0 for less than or greater than 10. Even though I may not be able to use your idea thanks for the idea you gave me

You absolutely have layers. Everybody does. Itâ€™s the column of Elements on the left-hand side of your editor.

1 Like

for whatever reason I was thinking of themes. I assume what you say layer you just mean another text box. Thanks again

Iâ€™m not really any good at writing elaborate math coding for my watch faces. I pick up a lot of what I need here on the forum. The rest of it I just make a guess and try to figure out a way to make it work. That includes guessing at code or just using opacity to show and hide what needs to be shown and hidden. That is what I have done in this watch face. MAG 1003 Inspection is open on this and you can see exactly how I did and redneck engineered the rest. Use what you need or ignore it all, the choice is yours.

1 Like

While it works in the editor, the element â€ś00 Min Onlyâ€ť does not appear on my device when #DmZ#=0. I suspect this is because some watches canâ€™t handle #DmZ# conditionals well.

1 Like

Yeah some it doesnâ€™t work. Having it in the face doesnâ€™t break it so I would rather code for it and have it work most of the time and when it doesnâ€™t just show 0

1 Like

Thanks will take a look at that

2 Likes