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.

This function is valid in v2.7.0. This function has been downloaded 0 times.

Parameters

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

Returns

{*}
trueValue will be returned if control is subject. Otherwise, if opt_falseValue is given it will be returned, but if not given subject will be returned.