Try if the value could make check return true, if not, return the elseValue.
value
check
true
elseValue
The value to check, if checked successfully, it will be returned.
The check function.
The value to return if the check fails.
Try if the
value
could makecheck
returntrue
, if not, return theelseValue
.