Determines the greater of two expressions.

GREATER(val1, val2)

val1 |
- |
A scalar, series, or table. |

val2 |
- |
A scalar, series, or table. |

A scalar, series, or table (containing the value 1 or 0) of the same type as the higher of the two expressions. 1: TRUE, 0: FALSE. Integer is the lowest type, Real is next, and Complex is the highest type. If one or both of the expressions is a series, then a series results. The following is a list of type conversion rules:

Integer |
> |
Real |
yields Real |

Integer |
> |
Series |
yields Series |

Integer |
> |
Integer |
yields Integer |

Real |
> |
Complex |
yields Complex |

Real |
> |
Series |
yields Series |

Complex |
> |
Real Series |
yields Complex Series |

String |
> |
String |
yields String |

greater(max(W1), 20)

returns a 1 if the maximum value of W1 is greater than 20.0, or 0 if the maximum value of W1 is less than or equal to 20.0.

greater({3, 5, 1, 10}, 8)

returns a series {0, 0, 0, 1}.

greater(a, b) is equivalent to a > b.

String comparisons use STRCMP

< <= > >= == != (Conditional Operators)