a == true ? b : c
Group |
Checks if a is true (boolean value) and returns b if it is, otherwise c is returned.
Description of Parameters
Parameter |
Description |
a |
Value to compare to true. |
b |
Return value if equal. |
c |
Return value if not equal. |
Example
Parameter a |
Parameter b |
Parameter c |
Result |
equal |
not equal |
not equal |
|
false |
equal |
not equal |
not equal |
true |
equal |
not equal |
equal |