Cookie value compare, integer

Andreas Plesner Jacobsen apj at mutt.dk
Wed Nov 16 13:23:15 CET 2011


On Wed, Nov 16, 2011 at 12:06:01PM +0000, Lane, Richard wrote:
> 
> I am getting the value of a cookie and then trying to compare it to another
> integer value but am getting a compile error. Can I compare integers stored
> in the req object? Should I be going about this a different way?

Use the conversion method in vmod_std:
https://www.varnish-cache.org/docs/trunk/reference/vmod_std.html#integer

-- 
Andreas




More information about the varnish-misc mailing list