API Reference > Functions > SDAI > sdaiLogicalCompare Function
sdaiLogicalCompare Function
Syntax
C++
DAI_EXPORT int sdaiLogicalCompare(SdaiLogical value1, SdaiLogical value2);

sdai.h

Parameters 
Description 
SdaiLogical value1 
[in] The first value for comparision.  
SdaiLogical value2 
[in] The second value for comparision. 

If comparision operation was successful, the function returns one of the following values`:

  • +1 if value1 is greater than value2;
  • 0 if value1 is equal to value2;
  • -1 if value1 is less than value2.

The Logical Compare function that compares two values according to the ordering of the values of the EXPRESS LOGICAL data type.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.