# system.kanoa.quality.event.addChkItemEventComment(chkItemEventInfo, userId)

Adds a comment to a check item event. If chkItemEventId is passed, it will update it and only requires the comment key to be passed otherwise all keys are expected.

---
### Parameters
**chkItemEventInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - chkItemEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkItemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - chkShtEventId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - comment</td><td>String</td><td></td></tr>	
 	<tr><td> - itemId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - measNumber</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**chkItemEventId or # of records modified if chkItemEventId is passed** `Integer`<br />

---
### Example
```python
chkItemEventInfo = {'chkShtEventId': 34, 'comment': 'some comment', 'chkItemId': 1, 'itemId': 5, 'measNumber': 1}
userId = 5
chkItemEventId = system.kanoa.quality.event.addChkItemEventComment(chkItemEventInfo, userId)
>>>
chkItemEventInfo = {'chkItemEventId': chkItemEventId, 'comment': 'a different comment'}
retVal = system.kanoa.quality.event.addChkItemEventComment(chkItemEventInfo, userId)
>>>
```
