2 variables inside if() ?

untamed nginx-forum at nginx.us
Sat Oct 23 00:05:08 MSD 2010


Thank you very much for your reply,

I know for definite both variables are set and are the same, eg:

[code]set $var1 'yes';
set $var2 'yes';
if ($var1 ~ $var2) {
     ...
}[/code]

Returns:
[code]*1 "$var2" does not match "yes"[/code]

So seems like the second variable is considered a string and not a
variable.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,143569,143627#msg-143627




More information about the nginx mailing list