Skip to main content

system.mes.material.doesMaterialExist

Checks if a Materials object with the given ID or path exists.

Syntax

system.mes.material.doesMaterialExist(idOrPath)

Parameters

ParameterTypeDescription
idOrPathStringThe ULID or path of the material to check.

Returns

Returns a boolean indicating whether the material exists.

Code Examples

# Check whether the material exists
material_exists = system.mes.material.doesMaterialExist('IRB/5391537510212')

# Output the boolean result
print(material_exists)