API referenceRevit
compare
Import from bear/revit/compare.
Functions
compare()
function compare(
a,
b,
op
): boolean;Defined in: bear/revit/compare.ts:8
How a Revit family formula compares, for the oracle bolt revit compiles.
A family's formula text gives a length to 12 digits, so two lengths
closer than a billionth of a foot are one length:
Wall Depth > 0.380208333333' is false when Wall Depth is 4 9/16". Yes/No
compares as 1 and 0.
Parameters
| Parameter | Type |
|---|---|
a | string | number | boolean |
b | string | number | boolean |
op | "=" | "<" | ">" | "<=" | ">=" |
Returns
boolean