a == true ? b : c


Checks if parameter a is true and returns input b, otherwise input c is returned.

Description of Parameters

Parameter

Description

a

Value to compare to true.

b

Value to return in case of equality.

c

Value to return in case of inequality.

Example

Parameter a

Parameter b

Parameter c

Result

they are equal

they are inequal

they are inequal

false

they are equal

they are inequal

they are inequal

true

they are equal

they are inequal

they are equal