Limit Tag/Complication Text String Characters

Is there a way to limit the amount of characters displayed from a tag and/or complication? For instance shorten the tag or even select the character to display.

I’d like to be able to display “Monday” as “Mo”.

And also a way to split the ones and tens place of the hour/minute tags. So that “23” would be two layers; one as “2” and one as “3”…with both pulling from the same tag.

I’m coming from a LUA based program where you could use a string.sub function to do this and not even sure if this is possible with WFS. Any help is greatly appreciated, thank you.

1 Like

There is a way if the characters are numbers, you can use numberFormat(form,num)
To truncate the texts there is no direct way, but you could align the text to left and mask the rest of the layer, ideally with monospace font. Or you could use bitmap font with images of your abbreviations in place of week day numbers.
For tens you can use (floor([SEC]/10))
for units for example ([SEC]%10)

1 Like

So I am not a maths man so lots of ().

I know there are no CHR management Tags.

you can split Numbers up with Jiggery Pokery .



Swap the Tags to suit

1 Like