Factry Historian
...
Scripting
Operators
operators int equality (int) == (int) = (bool) equality (int) != (int) = (bool) inequality arithmetic operators (int) + (int) = (int) sum (int) (int) = (int) difference (int) (int) = (int) product (int) / (int) = (int) quotient (int) % (int) = (int) remainder (int) + (float) = (float) sum (int) (float) = (float) difference (int) (float) = (float) product (int) / (float) = (float) quotient (int) + (char) = (char) sum (int) (char) = (char) difference bitwise operators (int) & (int) = (int) bitwise and (int) | (int) = (int) bitwise or (int) ^ (int) = (int) bitwise xor (int) &^ (int) = (int) bitclear (and not) (int) << (int) = (int) left shift (int) >> (int) = (int) right shift comparison operators (int) < (int) = (bool) less than (int) > (int) = (bool) greater than (int) <= (int) = (bool) less than or equal to (int) >= (int) = (bool) greater than or equal to (int) < (float) = (bool) less than (int) > (float) = (bool) greater than (int) <= (float) = (bool) less than or equal to (int) >= (float) = (bool) greater than or equal to (int) < (char) = (bool) less than (int) > (char) = (bool) greater than (int) <= (char) = (bool) less than or equal to (int) >= (char) = (bool) greater than or equal to float equality (float) == (float) = (bool) equality (float) != (float) = (bool) inequality arithmetic operators (float) + (float) = (float) sum (float) (float) = (float) difference (float) (float) = (float) product (float) / (float) = (float) quotient (float) + (int) = (int) sum (float) (int) = (int) difference (float) (int) = (int) product (float) / (int) = (int) quotient comparison operators (float) < (float) = (bool) less than (float) > (float) = (bool) greater than (float) <= (float) = (bool) less than or equal to (float) >= (float) = (bool) greater than or equal to (float) < (int) = (bool) less than (float) > (int) = (bool) greater than (float) <= (int) = (bool) less than or equal to (float) >= (int) = (bool) greater than or equal to string equality (string) == (string) = (bool) equality (string) != (string) = (bool) inequality concatenation (string) + (string) = (string) concatenation (string) + (other types) = (string) concatenation (after string converted) comparison operators (string) < (string) = (bool) less than (string) > (string) = (bool) greater than (string) <= (string) = (bool) less than or equal to (string) >= (string) = (bool) greater than or equal to char equality (char) == (char) = (bool) equality (char) != (char) = (bool) inequality arithmetic operators (char) + (char) = (char) sum (char) (char) = (char) difference (char) + (int) = (char) sum (char) (int) = (char) difference comparison operators (char) < (char) = (bool) less than (char) > (char) = (bool) greater than (char) <= (char) = (bool) less than or equal to (char) >= (char) = (bool) greater than or equal to (char) < (int) = (bool) less than (char) > (int) = (bool) greater than (char) <= (int) = (bool) less than or equal to (char) >= (int) = (bool) greater than or equal to bool equality (bool) == (bool) = (bool) equality (bool) != (bool) = (bool) inequality bytes equality test whether two byte array contain the same data uses bytes compare internally (bytes) == (bytes) = (bool) equality (bytes) != (bytes) = (bool) inequality time equality tests whether two times represent the same time instance uses time equal internally (time) == (time) = (bool) equality (time) != (time) = (bool) inequality arithmetic operators (time) (time) = (int) difference in nanoseconds (duration) (time) + (int) = (time) time + duration (nanoseconds) (time) (int) = (time) time duration (nanoseconds) comparison operators (time) < (time) = (bool) less than (time) > (time) = (bool) greater than (time) <= (time) = (bool) less than or equal to (time) >= (time) = (bool) greater than or equal to array and immutablearray equality tests whether two (immutable) arrays contain the same objects (array) == (array) = (bool) equality (array) != (array) = (bool) inequality (array) == (immutable array) = (bool) equality (array) != (immutable array) = (bool) inequality (immutable array) == (immutable array) = (bool) equality (immutable array) != (immutable array) = (bool) inequality (immutable array) == (array) = (bool) equality (immutable array) != (array) = (bool) inequality concatenation (array) + (array) return a concatenated array map and immutablemap equality tests whether two (immutable) maps contain the same key objects (map) == (map) = (bool) equality (map) != (map) = (bool) inequality (map) == (immutable map) = (bool) equality (map) != (immutable map) = (bool) inequality (immutable map) == (immutable map) = (bool) equality (immutable map) != (immutable map) = (bool) inequality (immutable map) == (map) = (bool) equality (immutable map) != (map) = (bool) inequality