LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Equal? operator on LV Classes

After some experimentation it appears the Equals? operator does work correctly on LV Classes. However, in the LV Help the example for Equal does not mention Classes.

 

Is using Equals? a good way to determine if two instances of the the same Class are equivalent (i.e. all corresponding data member have equivalent values).

0 Kudos
Message 1 of 4
(3,172 Views)

It would probably help if I searched a bit more before posting!

 

From the LV help on Classes:

 

If you compare two objects of the same class, for example two objects of the Truck class, LabVIEW compares the data at all levels of the class hierarchy, similarly to the manner in which LabVIEW compares a cluster of clusters.

 

This is great!

0 Kudos
Message 2 of 4
(3,167 Views)

There is also a set of LAVA post (try search for 'equal prim') that discusses this in depth.

 

Felix

Message 3 of 4
(3,144 Views)

Thanks Felix, I had missed this discussion.

0 Kudos
Message 4 of 4
(3,132 Views)