comparison xml/en/docs/http/ngx_http_rewrite_module.xml @ 860:9fce700e56d3

If: only empty strings and "0" evaluate to false. Before version 1.0.1, any string starting with "0" was considered a false value.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 07 Mar 2013 08:11:34 +0400
parents 6b6585577c33
children 9b549f369a36
comparison
equal deleted inserted replaced
859:0ed7670778bb 860:9fce700e56d3
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_rewrite_module" 10 <module name="Module ngx_http_rewrite_module"
11 link="/en/docs/http/ngx_http_rewrite_module.html" 11 link="/en/docs/http/ngx_http_rewrite_module.html"
12 lang="en" 12 lang="en"
13 rev="3"> 13 rev="4">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 The <literal>ngx_http_rewrite_module</literal> module allows to 18 The <literal>ngx_http_rewrite_module</literal> module allows to
96 A condition may be any of the following: 96 A condition may be any of the following:
97 <list type="bullet"> 97 <list type="bullet">
98 98
99 <listitem> 99 <listitem>
100 a variable name; false if the value of a variable is an empty string 100 a variable name; false if the value of a variable is an empty string
101 or any string starting with “<literal>0</literal>”; 101 or “<literal>0</literal>”;
102 <note>
103 Before version 1.0.1, any string starting with “<literal>0</literal>”
104 was considered a false value.
105 </note>
102 </listitem> 106 </listitem>
103 107
104 <listitem> 108 <listitem>
105 comparing a variable with a string using the 109 comparing a variable with a string using the
106 “<literal>=</literal>” and “<literal>!=</literal>” operators; 110 “<literal>=</literal>” and “<literal>!=</literal>” operators;