Can anybody help me with how to (if possible?) alarm on an SNMP set if the return value is a string. i.e. I want to alarm if not equal to 'OK'

When i type any ascii chars I get the following error :- Error saving record: Multiple-step operation generated errors. Check each status value.