Ternary operation

Hi,

In the server action formatting menus, there are two operations that look much the same. I would like to understand the difference between them and when do I use each.
To access them, one must select a variable to bind, click on the formatter, and then right click on the variable name.

The first one is inside the Operation submenu. There are two options “?” and “:” that allow you to implement a ternary operation.

The other one is inside the Conditional submenu, and is call “Then”.

Any information on them would be appreciated.

Many thanks,

Alex

Community Page
Last updated: