Obj_AttrCmp

SUMMARY

Compare attributes of two data objects.

SYNTAX

Obj_AttrCmp(<Operator>, <PointId1>, <Attribute1>, <PointId2>, <Attribute2>)

ARGUMENTS

Operator
Comparison operator:
Operator Operation
< Obj_QueryAttr(<PointId1>, <Attribute1>) < Obj_QueryAttr(<PointId2>, <Attribute2>)
<= Obj_QueryAttr(<PointId1>, <Attribute1>) <= Obj_QueryAttr(<PointId2>, <Attribute2>)
> Obj_QueryAttr(<PointId1>, <Attribute1>) > Obj_QueryAttr(<PointId2>, <Attribute2>)
>= Obj_QueryAttr(<PointId1>, <Attribute1>) >= Obj_QueryAttr(<PointId2>, <Attribute2>)
= Obj_QueryAttr(<PointId1>, <Attribute1>) = Obj_QueryAttr(<PointId2>, <Attribute2>)
!= Obj_QueryAttr(<PointId1>, <Attribute1>) != Obj_QueryAttr(<PointId2>, <Attribute2>)
Two attributes with a string value are compared as strings, two attributes with a numerical value are compared as floating point numbers. If both attributes have different type, the result is false.
PointId1
The first data object
Attribute1
The attribute for the first data object.
PointId2
The second data object
Attribute2
The attribute for the second data object.

RETURN VALUE

1 the compare operation returns true
0 the compare operation returns false
or
both attributes have different types
or
<Operator> is misspelled.

DESCRIPTION

See also: attributes of data objects.

EXAMPLES

Obj_AttrCmp(<=,SINUS,Value,COSINUS,RangeEnd)


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times