Lt

From ObjectVision

Jump to: navigation, search

Ordering functions less than (<)

Contents

syntax

  1. lt(a, b)
  2. a < b

definition

lt(a, b) or a < b results in a boolean data item indicating if the values of data item a are less than the corresponding values of data item b.

description

Each comparison with missing values results in the value False.

applies to

Data items with Numeric, string or bool value type

conditions

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

since version

5.15

example

1. attribute<bool> AltB (CDomain) := lt(A, B);    
2. attribute<bool> AltB (CDomain) := A < B;
A B AltB
0 0 False
1 2 True
2.5 2.5 False
-100 100 True
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