Here's an example showing what I'm looking for given the hypothetical !isequal command:
!macro foo _stmt _var1 _op _var2
!define _uid {__LINE__}
!ifequal _op "=" Continue${_uid}
!ifequal _op "<>" Continue${_uid}
!ifequal _op ">" Continue${_uid}
!ifequal _op "<" Continue${_uid}
!error "3rd param must be be one of: =, <>, <, or >."
Continue${_uid}:
...do work here
!undef _uid {__LINE__}
!macroend