---
title: "Is Measurement Value within Control Limits"
id: "is-measurement-value-within-control-limits"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/is-measurement-value-within-control-limits"
updated: 2026-07-31T14:57:28Z
---

# Is Measurement Value within Control Limits

**Sepasoft MES Module Suite**
 #### Is Measurement Value within Control Limits

| ![Warning](/resources/Storage/user-manual/user-manual/Warning.png) | Stable Version: 3.81.5 and later<br><br>Release Candidate: 3.81.4 RC6 and later |
| --- | --- |


```python
locationPath = 'New Enterprise\California\Quality\Location A'
defUUID = 'dde09f41-0d73-4212-afcc-957571915930'
defName = 'Def 1'
attributeName = 'Temperature'
limits = 'XBar UCL,XBar LCL' #If '' then evaluate all limits for the default chart
productCode = ''
value = 100.5
result = system.mes.spc.controllimit.isValueWithinLimitsByDefUUID(defUUID, locationPath, attributeName, limits, productCode, value)
#Where result = List<ControlLimitResult> : [{XBar UCL, Upper, 134.0, True}, {XBar LCL, Lower, 85.0, True}]
print result
result = system.quality.spc.controllimit.isValueWithinLimitsByDefName(defName, locationPath, attributeName, limits, productCode, value)
print result[0].getLimitName()
print result[0].getLimitType()
print result[0].getLimitValue()
print result[0].getResult()
```


**Sepasoft MES Module Suite**