Forum Discussion
Adam_24063
Nimbostratus
Apr 15, 2007the scope of a variable.
Hello all.
I have some questions I couldn't find answers to in the docs or the archives.
What is the scope of non-global variables declared in an iRule?
Specifically, in...
hoolio
Cirrostratus
Apr 16, 2007I believe that variables declared in the RULE_INIT event are global by default. Variables declared in any other event with 'set my_local_var' are local and are accessible in every other event for that connection, but not accessible for any other connection. Variables declared in any other event with 'set ::my_global_var' are global and can be accessed in every other event and every other connection.
Check Joe's post here for some additional info:
Click here
Aaron
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