if( variable exists )

Valentin V. Bartenev ne at vbart.ru
Tue Apr 3 16:56:30 UTC 2012


On Tuesday 03 April 2012 16:35:02 double wrote:
> Hello,
> 
> Is there a chance to test if a "$arg_variable" (empty value) exists?
> The problem: "if" condition returns "false".
> 
> URL:
> http://example.com/?variable
> 

  if ($args ~ variable) {
     ...
  }

 wbr, Valentin V. Bartenev



More information about the nginx mailing list