API Reference > ecschema-Metadata > Metadata > ECVersion > compare compare Method Compares two schema versions. compare(rhv: ECVersion): number Parameter Type Description rhv ECVersion Returns - number A negative number if this schema version is less than the given version, a positive number if greater, and 0 if are equivalent. Defined in core/ecschema-metadata/src/SchemaKey.ts Line 81 Last Updated: 12 June, 2024