Conditional Not Working Properly

I am using the following expression in my watch face but I am not getting any output from it.

$(100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))*125))>225?225:(100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))*125))$

When I use the following expression on it’s own in a textbox, it will give a true when true but a blank when false.

((100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))*125))<225)

Any advice on getting this to work?

I don’t think I’ll be able to help you with this, since I’m still very new to the expressions, but I think you should edit your post and copy/paste your expressions as Preformatted text.
It’s the sixth icon from the left at the top of the editor that looks like this: </>
or just text that’s preceded by 4 spaces, like this

indent preformatted text by 4 spaces

Otherwise some of the stars * get caught in the formatting, hence why some of your expression is emphasized.

in the first exression you have “…#/60)))125))…” but in the text expression you have “…#/60)))*125))…” I think you need to include the * operation for this to work. Also I would simplify it and remove the “100+” and have the limt set to 125 instead of 225.

$((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))*125)>125?225:(100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))*125))$

First of all try this:

$(100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))125))>225?225:0$

and check if it will give either 225 or 0, of not it’s a problem with first part of the condition.

I also recommend testing your script without external (), like this:

$100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))125)>225?225:100+((((#DH#-#WSUNRISEH24#)+((#Dm#-#WSUNRISEM#)/60))/((#WSUNSETH24#-#WSUNRISEH24#)+((#WSUNSETM#-#WSUNRISEM#)/60)))125)$

Sometimes it can be as simple as adding/deleting (), or “”.