TV myth. You do not have to reveal you are law enforcement when asked. That's the whole point of undercover operations. Some TV writer years ago came up with the "if you're a cop, you have to say so now or it's entrapment" concept. Pure bullshit, and I expect some of our resident internet lawyers will chime in.
_________________________
I really wanted to go to that Bukake because I thought for sure that you were going to be on the receiving end. - Ryan Knox to Jeff Steward