# O'clock and o'one etc in #DmT# text time - working but would prefer all in one line

I’m aiming for

ten o’one

These work when on two lines

// gives me **o'** before numbers less than 10
//example - ten o' one
\$#Dm#<=9?o\' : \$

// gives me **clock** when minutes are zero
//combined with above means o\' clock
//example - ten o' clock
\$#Dm#==0?clock:#DmT#\$

But I’d like it all in one line, like this

\$#Dm#<=9?o\' : \$\$#Dm#==0?clock:#DmT#\$

Problem - Seems I can’t have multiple expressions in the same text element

@chriswilshaw,
unfortunately nested if’s only work with EQUALS. But… it’s not a lot of cases so mybe just declare each number under 10:

\$#Dm#=9?o’ :\$\$#Dm#=8?o’ :\$\$#Dm#=7?o’ :\$\$#Dm#=6?o’ :\$\$#Dm#=5?o’ :\$\$#Dm#=4?o’ :\$\$#Dm#=3?o’ :\$\$#Dm#=2?o’ :\$\$#Dm#=1?o’ :\$\$#Dm#==0?clock:#DmT#\$

-john

Thanks very much for helping

I got this much to work

\$#Dm#==0?o\' clock:#DmT#\$

but if I add any more conditions to the line, it gives up and shows nothing

You said “not a lot of cases” - is there perhaps a limit?

Not sure but I’ve used up to 12 nests for the months of the year in French. Try single equals if it makes a difference

Thanks for the tips. I’ve got it going now.

I did the options 0 to 9 in one box, then 10… in another box.

Then use a conditional on their transparency to decide which I need to see and when.

All good now, thanks!

1 Like

sounds good