>

> (leftValue rightValue -- isGreater)

Inputs

Outputs

> tests whether the left dereferenced value is greater than the right dereferenced value.

Supported inputs are values whose dereferenced schemas are same-schema numeric or Text. Both inputs must be non-NIL. Text inputs must also be known.

Behavior

Example

{} 0 {} [
  first: 5;
  second: 4;
  intValue: 0 dynamic;

  "-- int32 --" printCompilerMessage
  5 4 > printStack _:;
  4 4 > printStack _:;
  3 4 > printStack _:;

  "-- references are dereferenced first --" printCompilerMessage
  @first @second > printStack _:;
  @second @first > printStack _:;

  "-- unknown int32 --" printCompilerMessage
  intValue 5 > printStack _:;

  "-- Whole boundary case --" printCompilerMessage
  intValue 2147483647 > printStack _:;

  "-- text --" printCompilerMessage
  "beta" "alpha" > printStack _:;
  "alpha" "beta" > printStack _:;

  0
] "main" exportFunction

Expected Output During Compilation

-- int32 --
TRUE
FALSE
FALSE
-- references are dereferenced first --
TRUE
FALSE
-- unknown int32 --
Cond
-- Whole boundary case --
FALSE
-- text --
TRUE
FALSE

See also