Forum Discussion
jsgibbs1
Nimbostratus
Jul 15, 2015Scan command irule with URI encoding
iRulers,
I need to set the SSL Cert and separate the Subject DN attributes to reference later. This works when not URI encoding, though that's what I need. Can SCAN handle this? I have tested th...
Kevin_Stewart
Employee
Jul 16, 2015Herein lies the beauty of list commands over scan. Once you've created a list, that list has properties like a length value:
log local0. [llength $namelist]
if { [llength $namelist] == 3 } {
middle name present
}
The llength command returns the number of values in the list (3 if there's a middle name). The lindex command returns the item in a list position. List indexes start at zero, so the third item is the second list item.
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