Change font color (if-statement)

With the 3 conditions specified, I would like koboloolbox to display the colors either green, yellow or red. Here is the command that I allowed myself to type :
** if(${calcul} <= 2,Ce courrier est dans une situation critique, if(${calcul}=3,Retard dans le traitement du courrier,Traitement du courrier en instance))**
Please point out my mistake because kobotoolox displays an error message

@dgafar, maybe this post discussed previously should help you understand how an if-statement is built:

Or, give a try with this expression:

if(${calcul} <= '2','Ce courrier est dans une situation critique', if(${calcul}='3','Retard dans le traitement du courrier','Traitement du courrier en instance'))

1 Like

Thank you very much for your feedback. But, my concern is not the “if”. My problem is how to pass the command with the change of font colors (green, yellow and red) for the conditions that I indicated

@dgafar, this post discussed previously should answer your query:

Please send it to me