called by 'else', 'then' or perhaps 'equals'
500454
def reply(workitem)

      if workitem['fei'] == h.fei # apply --> reply

        h.test = attribute(:test)
        h.test = attribute(:t) if h.test.nil?
        h.test = attribute_text if h.test.nil?
        h.test = nil if h.test == ''

        offset = (h.test.nil? || Condition.true?(h.test)) ? 0 : 1

        apply_child(offset, workitem)

      else # reply from a child

        if h.test != nil || Ruote::FlowExpressionId.child_id(workitem['fei']) != 0

          reply_to_parent(workitem)

        else

          apply_child(workitem['fields']['__result__'] == true ? 1 : 2, workitem)
        end
      end
    end
21759
def equals(self, data):
        

        if isinstance(data, six.string_types):
            return self._add_condition('=', data, types=[int, str])
        elif isinstance(data, list):
            return self._add_condition('IN', ",".join(map(str, data)), types=[str])

        raise QueryTypeError('Expected value of type `str` or `list`, not %s' % type(data))
120379
function or() {
    var predicates = Array.prototype.slice.call(arguments, 0);
    if (!predicates.length) {
      throw new Error('empty list of arguments to or');
    }

    return function orCheck() {
      var values = Array.prototype.slice.call(arguments, 0);
      return predicates.some(function (predicate) {
        try {
          return check.fn(predicate) ?
            predicate.apply(null, values) : Boolean(predicate);
        } catch (err) {
          // treat exceptions as false
          return false;
        }
      });
    };
  }
1344936
def verify_equal(self, first, second, msg=""):
        
        try:
            self.assert_equal(first, second, msg)
        except AssertionError, e:
            if msg:
                m = "%s:\n%s" % (msg, str(e))
            else:
                m = str(e)
            self.verification_erorrs.append(m)
1228615
def maybe(cls, parts, quotes=None, type=String, **kwargs):
        
        if len(parts) > 1:
            return cls(parts, quotes=quotes, type=type, **kwargs)

        if quotes is None and type is String:
            return Literal.from_bareword(parts[0])

        return Literal(type(parts[0], quotes=quotes, **kwargs))
631827
def p_if_else(p):
    
    cond_ = p[1]
    then_ = p[3]
    else_ = p[4][0]
    endif = p[4][1]
    p[0] = make_sentence('IF', cond_, then_, make_block(else_, endif), lineno=p.lineno(2))
535221
def Then(self, f, *args, **kwargs):
        
        return self.ThenAt(1, f, *args, **kwargs)
253744
public final void mEQUALS() throws RecognitionException {
		try {
			int _type = EQUALS;
			int _channel = DEFAULT_TOKEN_CHANNEL;
			// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:312:8: ( '=' )
			// src/main/resources/org/drools/compiler/lang/dsl/DSLMap.g:312:10: '='
			{
			match('='); if (state.failed) return;
			}

			state.type = _type;
			state.channel = _channel;
		}
		finally {
			// do for sure before leaving
		}
	}
839323
private final void checkCompatibility(VariableNumMap other) {
    int i = 0, j = 0;
    int[] otherNums = other.nums;
    String[] otherNames = other.names;
    Variable[] otherVars = other.vars;
    while (i < nums.length && j < otherNums.length) {
      if (nums[i] < otherNums[j]) {
        i++;
      } else if (nums[i] > otherNums[j]) {
        j++;
      } else {
        // Equal
        Preconditions.checkArgument(names[i].equals(otherNames[j]));
        Preconditions.checkArgument(vars[i].getName().equals(otherVars[j].getName()));
        i++; j++;
      }
    }
  }
1122523
function(val, desc){
        this.assert(
            eql(val, this.obj)
            , function(){ return 'expected ' + this.inspect + ' to equal ' + i(val) + (desc ? " | " + desc : "") }
            , function(){ return 'expected ' + this.inspect + ' to not equal ' + i(val) + (desc ? " | " + desc : "") }
            , val
            , true);
        return this;
    }
92334
def equality(self, other):
        """"""
        if not len(self) == len(other):
            return False
        return super().equality(other)
328356
function after(obj, func) {
  if (isPromise(obj)) {
    return obj.then(func);
  } else {
    return func(obj);
  }
}
357028
function(a, b) {
    if (a !== b) {
      const atype = whatis(a);
      const btype = whatis(b);

      if (atype === btype) {
        return _equal.hasOwnProperty(atype) ? _equal[atype](a, b) : a == b;
      }

      return false;
    }

    return true;
  }
1052660
function equals(first, second){

		//If are the same instance, true
		if (first === second)
			return true;
			
		//If values are equals, return true
		if (first == second)
			return true;
			
		//If different type, false
		if (typeof first != typeof second)
			return false;
			
		//If are not objects, check value
		if (typeof first != "object")
			return first == second;
			
		//For each property on first
		for (var current in first){
		
			//Get property value from each element
			var firstValue = first[current];
			var secondValue = second[current];
			
			//If current is object, invoke "Equals" on each 
			//member of the object; otherwise just check values
			var isEqual = (typeof firstValue === 'object') ? equals(firstValue, secondValue) : firstValue == secondValue;
			
			//If not equals, exit
			if (!isEqual)
				return false;
		}
		
		//Confirm
		return true;	
	}
1065271
def broadcast_equals(self, other, equiv=duck_array_ops.array_equiv):
        
        try:
            self, other = broadcast_variables(self, other)
        except (ValueError, AttributeError):
            return False
        return self.equals(other, equiv=equiv)
314080
def _eq(self, other):
        """"""
        return (self.type, self.children) == (other.type, other.children)
523423
def _try_then(self):
        """"""
        if self._cached is not None and self._callback is not None:
            self._callback(*self._cached[0], **self._cached[1])