Forum Discussion
Demonio_21719
Nimbostratus
Oct 09, 2015Can't use non-numeric string as operand of "&&" in rule
Hello. When this irule runs the following error occurs:
/Common/SSL_Test - can't use non-numeric string as operand of "&&" while executing "if { $renegtried == 0 and [SSL::cert count] == 0 and (...
Stanislas_Piro2
Cumulonimbus
Oct 09, 2015Hi,
First, Regex is useless in your irule. it will generate performance issues.
- use ([HTTP::uri] starts_with /test1) instead of ([HTTP::uri] matches_regex {^/test1})
- use ([HTTP::uri] ends_with /test1) instead of ([HTTP::uri] matches_regex {/test1$})
- use ([HTTP::uri] equals /test1) instead of ([HTTP::uri] matches_regex {^/test1$})
Your issue is your 2 first conditions do not have parenthesis.
($renegtried == 0) and ([SSL::cert count] == 0)
and you can replace ($renegtried == 0) by !($renegtried)
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