Operations

Operations


The Scala Debugger language supports a variety of operations out of the box. These vary from logical equality comparisons to arithmetic computations.

Calling an operator

Operators may either be used by their code representation, 3 + 4, or as a function, plus(3, 4) or plus 3 4.

Logical

NameDescriptionFunction NameCode Representation
EqualCompares two values, returning true if they are equivalent.equal10 == 10
Not EqualCompares two values, returning true if they are not equivalent.notEqual10 != 3
Less ThanCompares two values, returning true if the left is numerically less than the right.lessThan10 < 3
Less Than or EqualCompares two values, returning true if the left is numerically less than or equal to the right.lessThanEqual10 <= 3
Greater ThanCompares two values, returning true if the left is numerically greater than the right.greaterThan10 > 3
Greater Than or EqualCompares two values, returning true if the left is numerically greater than or equal to the right.greaterThanEqual10 >= 3

Arithmetic

NameDescriptionFunction NameCode Representation
PlusMathematically adds two numbers together.plus10 + 3
MinusMathematically subtracts the right number from the left.minus10 - 3
MultiplyMathematically multiplies two numbers together.multiply10 * 3
DivideMathematically divides the right number from the left.divide10 / 3
ModulusMathematically divides the right number from the left, returning the remainder.modulus10 % 3

Text

NameDescriptionFunction NameCode Representation
Plus PlusConcatenates two text values together.plusPlus"my" ++ "text"

Evaluation

NameDescriptionFunction NameCode Representation
Skip EvalExpression is not immediately evaluated.N/Ay := 999; x := @(y-3); y := 7; x