code: function(feature) {
          var context = this.getContext(feature);
          var applies = true;
  
          if (this.minScaleDenominator || this.maxScaleDenominator) {
              var scale = feature.layer.map.getScale();
          }
          
          // check if within minScale/maxScale bounds
          if (this.minScaleDenominator) {
              applies = scale >= OpenLayers.Style.createLiteral(
                      this.minScaleDenominator, context);
          }
          if (applies && this.maxScaleDenominator) {
              applies = scale < OpenLayers.Style.createLiteral(
                      this.maxScaleDenominator, context);
          }
          
          // check if optional filter applies
          if(applies && this.filter) {
              // feature id filters get the feature, others get the context
              if(this.filter.CLASS_NAME == "OpenLayers.Filter.FeatureId") {
                  applies = this.filter.evaluate(feature);
              } else {
                  applies = this.filter.evaluate(context);
              }
          }
  
          return applies;
      }
docs: APIMethod: evaluate
  evaluates this rule for a specific feature
  
  Parameters:
  feature - {<OpenLayers.Feature>} feature to apply the rule to.
  
  Returns:
  {Boolean} true if the rule applies, false if it does not.
  This rule is the default rule and always returns true.