protected function processTokenCondition($condition)
    {
        if (false === $this->condition->hasCondition($condition)) {
            $this->addError('The condition "' . $condition . '" does not exist.', self::ERROR_CODE_CONDITION_NOT_FOUND);
        } else {
            $node = new ConditionNode($condition, $this->condition->getCondition($condition));
            $this->scope
                ->setNode($node)
                ->shiftExpression();
        }
    }
protected function processTokenCondition($condition)
    {
        if (false === $this->condition->hasCondition($condition)) {
            $this->addError('The condition "' . $condition . '" does not exist.', self::ERROR_CODE_CONDITION_NOT_FOUND);
        } else {
            $node = new ConditionNode($condition, $this->condition->getCondition($condition));
            $this->scope
                ->setNode($node)
                ->shiftExpression();
        }
    }
protected function processTokenCondition ( $ condition ) { if ( false === $ this -> condition -> hasCondition ( $ condition ) ) { $ this -> addError ( 'The condition "' . $ condition . '" does not exist.' , self :: ERROR_CODE_CONDITION_NOT_FOUND ) ; } else { $ node = new ConditionNode ( $ condition , $ this -> condition -> getCondition ( $ condition ) ) ; $ this -> scope -> setNode ( $ node ) -> shiftExpression ( ) ; } }
Will process the condition token.

The condition must exist in the list of items of the condition.

@param string $condition
Will process the condition token .