ifNot()

If the first and second arguments are different 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.14.0. This function has been downloaded 25 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 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.