Forum Discussion
rleclerc_120926
Nimbostratus
Jan 08, 2013iRule to drop or allow base on cookie value and date
I need to put together an iRule that either allows or drops traffic based on a cookie value and the day of the month. So if cookie value ends in 0,2,4,6,8 and day of the month is 2-30 (all even numbe...
nitass
Employee
Jan 09, 2013just wondering if we can mod clock format value without converting to integer first.
[root@ve11a:Active:Changes Pending] config tclsh
% put [clock format [clock seconds] -format {%d}]
09
% put [expr {[clock format [clock seconds] -format {%d}] % 2}]
can't use invalid octal number as operand of "%"
% scan [clock format [clock seconds] -format {%d}] {%d} dd
1
% put [expr {$dd % 2}]
1
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
