Forum Discussion
Passing a variable through an iRule
Ah... You're a C programmer? Java perhaps? (I sympathise. I prefer C or perl myself. Hate Java). But I digress... This is TCL... The syntax for setting your variables is incorrect. You SET a variable to assign it a value. Not to declare it. So the
set htmlfile
doesn't need to be there (Unless you want toset it to some default value like
set htmlfile ""
Which gets rid of your first (And only reported so far) error. But the syntax where you set it to explicit values is also wrong for TCL. It should be something like
set htmlfile [lsearch -exact $default_pool.html]
But I'm unsure what you're trying to do there. leasrch searches a list... But $default_pool.html isn't a list... Reading the rest of the logic perhaps you just meant something like
set htmlfile "$default_pool.html"
Perhaps? As $htmlfile is supposed to be the name of a file to return the contents of?
H
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