SassNumber::op_lt PHP 메소드

op_lt() 공개 메소드

The SassScript < operation.
public op_lt ( sassLiteral $other ) : SassBoolean
$other sassLiteral the value to compare to this
리턴 SassBoolean SassBoolean object with the value true if the values of this is less than the value of other, false if it is not
    public function op_lt($other)
    {
        if (!$other instanceof SassNumber) {
            throw new SassNumberException('Number must be a number', SassScriptParser::$context->node);
        }
        return new SassBoolean($this->value < $this->convert($other)->value);
    }