$Compare
  • 14 May 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

$Compare

  • Dark
    Light
  • PDF

This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.

$Compare

Compare two values numerically or as case-sensitive strings.

Script usage:

$Compare(Arg1, Operator, Arg2, [AsNumber])

Parameters:

NameDescription
Arg1The left-hand side of the comparison.
OperatorOne of: <, >, <=, >=, =, !=
Arg2The right-hand side of the comparison.
AsNumberOverride number detection. True causes an error if the arguments cannot be parsed as numbers. False always compares them as strings.

Was this article helpful?

What's Next