ifNot()

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

This function is valid in v2.8.0 to v2.12.3. This function has been downloaded 0 times.

Parameters

{*} subject
Value to test.
{*} control
Value that is being tested against.
{*} falseValue
Value to be returned if control and subject are different.
{*=} opt_trueValue Optional, Default:subject
Value to be returned if control and subject are the same.

Returns

{*}
opt_trueValue will be returned if control is different from subject. Otherwise, if falseValue is given it will be returned, but if not given subject will be returned.

Required Function

This function directly 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 second argument) is passed back.

Requiring Function

This function is directly required by the following function:

  • 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 second argument) is passed back.