Just test the value received to look for a specific character.

Y = RCREG
IF Y = ? THEN