Forum Discussion
gerald_wegener_
Nimbostratus
Aug 23, 2006Method for reading variables needed
I looking for a way to read varibles (integers) into an iRule. The variables must be able to be modified on the fly via the command line. So far the best I can come up with is to use data group ...
Aug 23, 2006
Data Groups can be treated as TCL lists, so you can use all of the TCL list commands to extract values from them. If you have a data group and you want to extract the first element, you can use the lindex command:
set a [lindex $::percent 0]This will extract the 1st element (zero based) from the data group named "percent".
Hope this helps...
-Joe
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
