Eq

From ObjectVision

Revision as of 14:15, 29 April 2020 by Martin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ordering functions equals (==)

Contents

syntax

  • eq(a, b)
  • a == b

definition

eq(a, b) or a == b results in a boolean data item indicating if the values of data item a are equal to the corresponding values of data item b.

description

The comparison between two missing values (null == null) results in the value False.

applies to

Data items with Numeric, Point, string or bool value type

conditions

  1. Domain of the arguments must match or be void ([1] or parameters can be compared to data items of any domain).
  2. Arguments must have matching:

since version

5.15

example

1. attribute<bool> AisB (CDomain) := eq(A, B);    
2. attribute<bool> AisB (CDomain) := A == B;
A B AisB
0 0 True
1 2 False
2.5 2.5 True
-100 100 False
999 -999 False
null 0 False
null null False
0 null False
null 100 False
100 null False

CDomain, nr of rows = 10

see also

Personal tools