Ternary Operator
Using the Ternary Operator
Syntax
condition ? exprIfTrue : exprIfFalse;
Parameters
Examples
Basic Usage
$.RESTService.body.age >= 21 ? "Eligible to Vote" : "Not Eligible to Vote";
Chaining / Nested Ternary Operators
Best Practices
Last updated
Was this helpful?
