Forum Discussion
command to exit an iRule but continue processing other iRules
is there a command to exit an iRule and move to the next iRules? I want to add an IF statement and if true, exit the current iRule but continue processing any additional iRules. I'm using "return" several times within the rule to bypass sections:
# return if foo app server
if { [class match [IP::client_addr] equals foo_exclusions]} {
return
}
This works to return past several sections of the rule but I'm looking for a way to exit the current rule if the first IF statement = TRUE. Is there a way to do that? Thanks in advance!
I don't think there is such a specific iRule command. You probably can achieve the same logic with use of the 'event' and 'priority' statement. See:
https://clouddocs.f5.com/api/irules/event.html
https://clouddocs.f5.com/api/irules/priority.html
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com