eq or ==

Result = eq(expression1, expression2)
Result = expression1 == expression2
expression1

spatial, non spatial boolean, nominal, ordinal, scalar, directional, ldd

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 equals the value on expression2 Result has a cell value 1 (condition is TRUE) on the corresponding cell; if the cell value on expression1 does not equal the value on expression2 Result has a cell value 0 (condition is FALSE).

Notes

A cell with a missing value on expression1 and/or expression2 or is assigned a missing value on Result.

The == sign is an alternative notation for eq.

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/eq_Result.png ../../_images/eq_Expr1.png ../../_images/eq_Expr2.png