Determines the lesser of two scalars.

LESSER(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 |

lesser(4, max({2, 4, 6}))

returns a value of 1.

lesser(4, {2, 4, 6})

returns the series {0, 0, 1}.

LESSER(a, b) is equivalent to a < b.

String comparisons use STRCMP

&& || ! AND OR NOT XOR (Logical Operators)