Help with #DH# Comparison Logic

Hi there,

I’m trying to compare #DH# but it doesn’t seem to be working as I intend it to.

Here’s an example using a text box (for debugging purposes):

#DH# $(#DH#<6)?100:0$

In this example, #DH# is 14. Logically, (14 < 6) is false so it should return 0.

Can anyone please help me? My intention is that once #DH# is 6AM or later, it should print the value 0.

Thanks.

maybe a second $ is missing at the end?
#DH# $(#DH#<6)?100:0$$

Try $#DH#<6?#DH#:0$

I seem to have figured it out.
It has to do with the bracket placements.

This works: