public function unless($condition, $remote = false)
    {
        if (!$remote && !($condition instanceof PheryFunction) && !($condition instanceof PheryResponse)) {
            $this->matched = !$condition;
        } else {
            $this->set_internal_counter('!', true);
            $this->cmd(0xff, array($this->typecast($condition, true, true)));
        }

        return $this;
    }
public function unless($condition, $remote = false)
    {
        if (!$remote && !($condition instanceof PheryFunction) && !($condition instanceof PheryResponse)) {
            $this->matched = !$condition;
        } else {
            $this->set_internal_counter('!', true);
            $this->cmd(0xff, array($this->typecast($condition, true, true)));
        }

        return $this;
    }
public function unless ( $ condition , $ remote = false ) { if ( ! $ remote && ! ( $ condition instanceof PheryFunction ) && ! ( $ condition instanceof PheryResponse ) ) { $ this -> matched = ! $ condition ; } else { $ this -> set_internal_counter ( '!' , true ) ; $ this -> cmd ( 0xff , array ( $ this -> typecast ( $ condition , true , true ) ) ) ; } return $ this ; }
Borrowed from Ruby, the next imediate instruction will be executed unless
it matches this criteria.

<code>
$count = 3;
PheryResponse::factory()
// if not $count equals 2 then
->unless($count === 2)
->call('func'); // This won't trigger, $count is 2
</code>

<code>
PheryResponse::factory('.widget')
->unless(PheryFunction::factory('return !this.hasClass("active");'), true)
->remove(); // This won't remove if the element have the active class
</code>


@param boolean|PheryFunction $condition
When not remote, can be any criteria that evaluates to FALSE.
When it's remote, if passed a PheryFunction, it will skip the next
iteration unless the return value of the PheryFunction is false.
Passing a PheryFunction automatically sets $remote param to true

@param bool $remote
Instead of doing it in the server side, do it client side, for example,
append something ONLY if an element exists. The context (this) of the function
will be the last selected element or the calling element.

@return PheryResponse
Borrowed from Ruby the next imediate instruction will be executed unless it matches this criteria .