I'm trying to write a sim event to verify that the person transferring a check in is the check owner. If the user is not the check owner, the event exits with an error.
The error message works if it is not the check owner. The problem I'm having is when in the "else" block, nothing seems to happen (see below).
event inq:110
if @CKEMP <> @TREMP
exitwitherror "Only the check owner can transfer a check"
else
loadkybdmacro key(1,393219) //nothing happens here
endif
endevent
Thanks for any help!
The error message works if it is not the check owner. The problem I'm having is when in the "else" block, nothing seems to happen (see below).
event inq:110
if @CKEMP <> @TREMP
exitwitherror "Only the check owner can transfer a check"
else
loadkybdmacro key(1,393219) //nothing happens here
endif
endevent
Thanks for any help!