API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.CompareToEx method
Compares the two shapes using the CQL expression as condition, and returns True if the condition is met
Syntax:
Function CompareToEx(ByVal Shape2 As Shape, ByVal Condition As String, Optional ByVal Data As Variant) As Boolean
Parameters:
Name Type Description
Shape2
Condition
String
Data
Variant
Remarks:
The CompareToEx method compares two shapes by using a Corel Query Language (CQL) expression as a condition. A value of True is returned if the condition is met. For information on CQL, see the section "Including queries in macros."