Forum Discussion
List all assigned variables
The tcl command ">http://www.tcl.tk/man/tcl8.0/TclCmd/info.htm" target="_blank">info vars will return a list of all variables that are visible in context of that command's evaluation. This doesn't give a 'name = value' set, providing rather a Tcl list of names, but before diving into how to accomplish name/value pair listing, it might be better to understand why you are seeking to do this. Presumably it is to facilitate testing or debugging in some fashion. Are you attempting to see whether a particular variable is defined? For that, ">http://www.tcl.tk/man/tcl8.0/TclCmd/info.htm" target="_blank">info exists is a better choice.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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