Solved

Color format HH:MM:SS

• 2 replies
• 41 views

• New Participant

Is there a way to color format HH:MM:SS?

I’m looking for a way to evaluate this and color format accordingly

I’d like to do something like this:

[<3600][red]
{
[>=3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[<3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[>=0]{{{60|60|00}}}:{{{|60.|00}}};
[<0]-{{{60|60|00}}}:{{{|60.|00}}};
};

[<18000][Yellow]
{
[>=3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[<3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[>=0]{{{60|60|00}}}:{{{|60.|00}}};
[<0]-{{{60|60|00}}}:{{{|60.|00}}};
};

[<36000][green]
{
[>=3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[<3600]{{{3600||00}}}:{{{60|60|00}}}:{{{|60.|00}}};
[>=0]{{{60|60|00}}}:{{{|60.|00}}};
[<0]-{{{60|60|00}}}:{{{|60.|00}}};
};

icon

Best answer by Julius Kos 24 September 2022, 00:55

View original

2 replies

Userlevel 2

Hi there!

You can use the following syntax for the formatting logic you are describing:

[<3600][red]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}};

[<18000][yellow]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}};

[<36000][green]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}}

Hi there!

You can use the following syntax for the formatting logic you are describing:

[<3600][red]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}};

[<18000][yellow]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}};

[<36000][green]{{{3600||00}}}:{{{60|60|00}}}:{{{|60|00}}}

Works like a charm!  Thank you!!!