a == true ? b : c

Checks if a is "true" (boolean value) and returns b if it is, otherwise c is returned.

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