ifOut()

If the first argument is not in the second argument (array) the third argument is passed back, otherwise the fourth argument (or if not given the first argument) is passed back.

This function is valid in v2.13.0 to v2.13.3. This function has been downloaded 20 times.

Parameters

{*} subject
Value to see if it is in arrControls.
{Array} arrControls
Array of values to test subject against.
{*} falseValue
Value to be returned if subject is not found within arrControls.
{*=} opt_trueValue Optional, Default:subject
Value to be returned if subject is found within arrControls.

Returns

{*}
falseValue will be returned if subject is not found within arrControls. Otherwise, if opt_trueValue is given it will be returned, but if not given subject will be returned.

Required Function

This function requires the following function which is included automatically:

  • ifIs()
    If the first and second arguments are the same the third argument is passed back, otherwise the fourth argument (or if not given the first argument) is passed back.