system.mes.unitOfMeasure.doesUnitOfMeasureExist
Checks if a Units Of Measure object with the given ID or name exists.
Syntax
system.mes.unitOfMeasure.doesUnitOfMeasureExist(idOrName)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
idOrName | String | False | The ULID or name of the unit of measure to check. |
Returns
Returns a boolean indicating whether the unit of measure exists.
Code Examples
# Check whether the unit of measure exists
uomExists = system.mes.unitOfMeasure.doesUnitOfMeasureExist('Pound')
# Output the boolean result
print(uomExists)