Forum Discussion
dp_119903
Cirrostratus
Aug 05, 2015Can you take multiple actions on an if statement?
I'm fairly familiar with if / elseif statements. I know how to make multiple conditions in an "if" statement, but I'm having issues taking multiple actions on an if statement. The irule is not comp...
Aug 05, 2015
Hi!
The question is a bit fuzzy, but I'll try to answer and see if it meets your expectations. 🙂 All you need to do is to separate the commands by a new line, or a semicolon.
if { condition } {
command 1
command 2
}
if { condition } { command 1; command 2; }
Does that answer your question?
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
