iRule to set indefinite TCP idle timeout

I’m attempting to write an iRule to set the idle timeout on about 10 ports to be indefinite so I can apply it to a forwarding virtual. I’m not 100% sure if I can do a switch -glob on it, as there are quite a bit of ports I need to apply the indefinite timer to.

I need the idle timeout value to be indefinite

when CLIENT_ACCEPTED {
    if { some criteria } {
        TCP::idletime 4294967295
    }
}

It’s not actual indefinate, but it’s the max value (136 years I believe). You could do it in a switch statement as well.