$Compare
- 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
$Compare
- Updated on 14 May 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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:
Name | Description |
---|---|
☆ Arg1 | The left-hand side of the comparison. |
☆ Operator | One of: <, >, <=, >=, =, != |
☆ Arg2 | The right-hand side of the comparison. |
AsNumber | Override number detection. True causes an error if the arguments cannot be parsed as numbers. False always compares them as strings. |
Was this article helpful?