<div dir="ltr">I haven't checked the code, but it's probably because var.get returns "" when it can't find the variables. So the condition is true, there is a string, even though it's empty. Maybe try with :<div><br></div><div>if (var.get(.....) ~ ".")</div><div><br></div><div>just to make sure it's not empty </div><div><br></div><div>You can also use sdt.log() to try and print what's inside various variables and debug that using varnishlog.<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard</div></div></div></div></div></div>