Introduction:
- The ternary operator is an operator that exists in some programming languages, which takes three operands rather than the typical one or two that most operators use. It provides a way to shorten a simple if else block.
- In this article we will apply this technique using a calculated field.
Here’s an example:

So if the business skill variable is less than 100 it will assign the value ‘1’ to this field
Otherwise it will assign the value ‘-1’ to this ( if_statement ) custom field.