Skip to Content
Bear documentation

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

ParameterType
astring | number | boolean
bstring | number | boolean
op"=" | "<" | ">" | "<=" | ">="

Returns

boolean

On this page