original_string: public function path(array $condition)
      {
          if (!in_array($condition['operator'], array('=', '!='))) {
              return false;
          }
  
          $path = $this->url->path();
  
          $found = false;
  
          foreach ((array) $condition['value'] as $pattern) {
              if (gplcart_path_match($path, $pattern)) {
                  $found = true;
              }
          }
  
          return $condition['operator'] === '=' ? $found : !$found;
      }
code: public function path(array $condition)
      {
          if (!in_array($condition['operator'], array('=', '!='))) {
              return false;
          }
  
          $path = $this->url->path();
  
          $found = false;
  
          foreach ((array) $condition['value'] as $pattern) {
              if (gplcart_path_match($path, $pattern)) {
                  $found = true;
              }
          }
  
          return $condition['operator'] === '=' ? $found : !$found;
      }
code_tokens: public function path ( array $ condition ) { if ( ! in_array ( $ condition [ 'operator' ] , array ( '=' , '!=' ) ) ) { return false ; } $ path = $ this -> url -> path ( ) ; $ found = false ; foreach ( ( array ) $ condition [ 'value' ] as $ pattern ) { if ( gplcart_path_match ( $ path , $ pattern ) ) { $ found = true ; } } return $ condition [ 'operator' ] === '=' ? $ found : ! $ found ; }
docstring: Returns true if path condition is met
  @param array $condition
  @return boolean
docstring_tokens: Returns true if path condition is met