iRule to restrict specific browsers

I have never done an iRule like this before, any suggestions?

Something like this:

when HTTP_REQUEST {
   if { [HTTP::header User-Agent] contains "MSIE" } {
       ... do something
   }
}