Forum Discussion
AlexBCT
Cumulonimbus
Aug 06, 2021How to stop an APM variable converting string to number
Hi all, For a specific requirement, I need to add ".0" at the end of a username in APM. I'm doing this using a Variable Assign agent in the VPE. As the username consists completely of number...
Dario_Garrido
Noctilucent
Aug 27, 2021Hello Alex.
This is working for me:
session.logon.last.username = expr { "[mcget {session.logon.last.username}].0" }Regards,
Dario.
AlexBCT
Cumulonimbus
Aug 27, 2021Hi Dario,
Thanks for the response!
I've just tried this one in my lab, but unfortunately it still strips off the leading 0 when I look at session.logon.last.username afterwards. When you run it with for example 012346 as a username, what does the variable look like afterwards in your system?
Thanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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