Forum Discussion
smp_86112
Cirrostratus
May 13, 2010Logging output of an expression
OK I feel really dumb having to post this question, so please hit me with kid gloves. I'm trying to do something that appeared to be very trivial at first glance...
All I want to do is log the out...
hoolio
Cirrostratus
May 13, 2010
http://www.tcl.tk/man/tcl8.4/TclCmd/if.htm
The if command evaluates expr1 as an expression (in the same way that expr evaluates its argument).
So if you're not using the expression in an if statement, you can use expr to do the evaluation. If it was a command you could execute it in square braces:
log local0. "[string match "/myuri" [HTTP::uri]]"
Aaron
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