SassNumber::op_eq PHP Method

op_eq() public method

The SassScript == operation.
public op_eq ( $other ) : SassBoolean
return SassBoolean SassBoolean object with the value true if the values of this and other are equal, false if they are not
    public function op_eq($other)
    {
        if (!$other instanceof SassNumber) {
            return new SassBoolean(false);
        }
        try {
            return new SassBoolean($this->value == $this->convert($other)->value);
        } catch (Exception $e) {
            return new SassBoolean(false);
        }
    }