Is greater than

Description

When the > operator has two numeric operands, it compares their values, after applying the numeric type conversion rules. The result of this operation is of boolean type and is true if the left operand is greater than the right operand, and false otherwise.

When the > operator has two operands of char type or of string typethen the char/string type conversion rules are applied, and then the lexical ordering of the operands are compared. The result of this operation is of boolean type and is true if the left operand is greater than the right operand, and false otherwise.

Example

For example

  'abc' > 'abc'  results in false
  'abc' > 'abcd' results in false
  'abc' > 'ab'   results in true
  'abc' > 'abd'  results in false
  'abc' > 'aac'  results in true
  'abc' > 'b'    results in false