# system.kanoa.item.checkItemStateClassPath(itemStateClassPath, userId)

checks if an itemStateClassPath exists and creates it if it doesn't

---
### Parameters
**itemStateClassPath** `String`: Path of item state class to check for<br />
**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**itemStateClassId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
itemStateClassPath = 'Scrap Reasons\Illegible label'
userId = 17
itemStateClassId, msg = system.kanoa.item.checkItemStateClassPath(itemStateClassPath, userId)
```
