H-ANSEN / StrEvaluate

Dead simple, small, fast expression evaluation in Java.
MIT License
2 stars 0 forks source link

Equality operators #8

Closed H-ANSEN closed 1 year ago

H-ANSEN commented 1 year ago

Added support for equality and inequality operations❗

Both equality and inequality expressions evaluate to either 1.0 (representing true) or 0.0 (representing false).

Equality The equality operator is represented by a double equals sign: ==. The operator evaluates an expression to the left and the right and determines if the result of each evaluation was the same. If both sides are the same the expression evaluates to 1.0 (true) otherwise it evaluates to 0.0 (false).

Inequality The inequality operator is represented by a bang followed by an equals sign: !=. The operator evaluates an expression to the left and the right and determines if the result of each evaluation was different. If both sides were different the expression evaluates to '1.0' (true) otherwise it evaluates to 0.0 (false).