Forum Discussion
Writing expressions in APM
I would like to convert a string to lower case. I'm trying to do this in the variable assign and see the results in logging. How would I write the expression so that it would convert the username to lower case and insert into a custom variable?
2 Replies
- Kevin_Stewart
Employee
I don't know that it's spelled out neatly in any given document other than the TCL wiki, but here's an interesting reference:
The difference really is what you want it to return. The "return" command will simply return the value that you're setting, while the "expr" command is usually for Boolean operations.
- Kevin_Stewart
Employee
You can technically use expr to return information, but it is semantically meant (as you stated) for expressions (math, logic). The return command will return any information that you provide, be it integer, string, etc (other than math/logic).
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