le or <=

Result = le(expression1, expression2)
Result = expression1 <= expression2
expression1

spatial, non spatial ordinal, scalar

expression2

spatial, non spatial type of expression1

Result

spatial; non spatial if expression1 and expression2 are non spatial boolean

Operation

For each cell evaluates expression1 in relation to expression2. If the cell value on expression1 is less than or equal to the value on expression2 Result has a cell value 1 (condition is TRUE) on the corresponding cell; if the cell value on expression1 is greater than the value on expression2 Result has a cell value 0 (condition is FALSE).

Notes

A cell with missing value on expression1 and/or expression2 results in a missing value on Result at the corresponding cell. The <= sign is an alternative notation for le.

Group

This operation belongs to the group of Comparison operators

Examples

  1. • pcrcalc
    binding
    Result = Result.map;
    Expr1 = Expr1.map;
    Expr2 = Expr2.map;
    initial
    report Result = Expr1 <= Expr2;

    • python
    Expr1 = readmap(“Expr1.map”)
    Expr2 = readmap(“Expr2.map”)
    Result = Expr1 <= Expr2

    Result.map

    Expr1.map

    Expr2.map

    ../../_images/le_Result.png ../../_images/eq_Expr1.png ../../_images/eq_Expr2.png