Annotate text based on else/if condition

Hello to all,

I would like to annotate some text based on the time of my simulation.

If my time is less or equal to 1 annotate: “one”
if my time is more than 1 annotate: “two”

How can I achieve this? Would it be possible with python annotation?

Best Regards

Python Annotation with the Expression set to "one" if time_value <= 1 else "two" will do the trick.


Thanks for the reply!!

Would it be possible to allocate colors to it? “one” green, “two” red?

Not through an expression, I’m afraid.

Ok. Thanks for help