Forum Discussion
boneyard
Apr 25, 2012MVP
looking for nicer way to have variable in the middle of string
i want to create a string where the variable part is in the middle, iRule / TCL doesn't totally get this.
the line below causes the system to assume the variable is $variable_fixedpart2, not...
hooleylist
Apr 25, 2012Cirrostratus
Sure, you can use curly braces to escape the variable name:
set name "fixedpart1_${variable}_fixedpart2"
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