Forum Discussion
Mr_Paritchaya_7
Nimbostratus
Mar 25, 2009How to convert string variable to number?
I want to capture mobile number from http payload and doing mod it by 4 for select pool.
Now I'm confusing about how to convert string variable to integer or number variable for modulation.
...
Mr_Paritchaya_7
Nimbostratus
Mar 26, 2009Hi, Aaron,
From example below.
I try to mod string type($subid) by 4 but I'm not sure that what type will return?
set subid [findstr [HTTP::payload] "subscriberNumber" 0 ""]
set modid expr {$subid % 4}
Thank you,
Paritchaya
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