Hi, I made a watch face mostly for my own use… perhaps I will eventually upload it who knows. I’m sorry if this has been asked before I have googled and searched here and am really at a loss.
I am using nested ternary operations to display text in a field based upon the minute in hour so I can display “O’clock”, “O’one” etc… My code is very ugly and I wish there was a more efficient way to do this… if there is please let me know as I’m sure this slows down the watch lol… (Although it should only run when it approaches close a minute correct? I imagine some listener is present in the code…)
This worked just fine when I used my watch before… but since updating computers, WFS, and (possibly) wearOS… the text field just displays FALSE… This still diplays just fine within WFS but when I run on device is when I get the FALSE… I also purposely deleted a parenthesis from the end and ran on device and I notice it is rewriting the code like : ([MIN] == 0? “O’clock”:FALSE…
I’m sure there is a simple explanation for this that I am missing… also I know you can do these as a bitmap font but I would like to be able to change the font quickly without having to remake images…
I’m sorry I must not have been clear but I only deleted one parenthesis to test and see what the text field displayed on my watch…
the code that I pasted above in its entirety is what I run… I have no FALSE written anywhere inside my code and all the parenthesis are accounted for… It runs fine inside WFS
I know it nested but you still need to close the brackets
dont believe then suit yourself…good luck
Think you dont understand.
(([MIN] == 46)? “Fourty-":(([MIN]==47)?0:1))
EXAMPLE OF CORRECT NESTED
Each expression the conditions need to be open and close…because without the brackets the watch some how doesn’t recognise it as expression and mistake it wrongly
Also if you would have read my post you would see that my code is working fine in WFS emulator but only has an error when using Run On Device testing, and it used to run just fine on my watch as well.