I have a little problem, I must return a different choice of a select into a td
using thymeleaf, I try the next sentence:
You conditional operator contains 3 results. It should have 2 like this.
condition ? first_expression : second_expression;
In your situation. I assume linea.estado
is a boolean
value
If you want 3 values to be output and given that the linea.estado
is a string which may contain 'WARN', 'DANGER', 'INFO'
then you can do something like this.
But the cleaner solution will be something like this
Or using Switch
as mentioned by Patrick LC