Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #897 from astroidex/master
new help texts for operators
- Loading branch information
Showing
6 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h3>AND logical operator</h3> | ||
Returns 1 when condition a and b are true. | ||
|
||
<h4>Syntax</h4> | ||
<pre> condition a AND condition b </pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 4 = 2+2 AND 1 = 1 → returns 1 </pre> | ||
<pre> 4 = 2+2 AND 1 = 2 → returns 0 </pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h3>LIKE expression</h3> | ||
Returns 1 if the first parameter matches case-insensitive the supplied pattern. ILIKE can be used instead of LIKE to make the match case-insensitive. Works with numbers also. | ||
|
||
<h4>Syntax</h4> | ||
<pre>string/number LIKE pattern</pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 'A' ILIKE 'A' → returns 1 </pre> | ||
<pre> 'A' ILIKE 'a' → returns 1 </pre> | ||
<pre> 'A' ILIKE 'B' → returns 0 </pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<h3>IS expression</h3> | ||
Returns 1 if a is the same as b. | ||
|
||
<h4>Syntax</h4> | ||
<pre>a is b</pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 'A' IS 'A' → returns 1 </pre> | ||
<pre> 'A' IS 'a' → returns 0 </pre> | ||
<pre> 4 IS 4 → returns 1 </pre> | ||
<pre> 4 IS 2+2 → returns 1 </pre> | ||
<pre> 4 IS 2 → returns 0 </pre> | ||
<pre> 4 IS 2 → returns 0 </pre> | ||
<pre> $geometry IS NULL → returns 0, if your geometry is not NULL</pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h3>LIKE expression</h3> | ||
Returns 1 if the first parameter matches the supplied pattern. Works with numbers also. | ||
|
||
<h4>Syntax</h4> | ||
<pre>string/number LIKE pattern</pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 'A' LIKE 'A' → returns 1 </pre> | ||
<pre> 'A' LIKE 'a' → returns 0 </pre> | ||
<pre> 'A' LIKE 'B' → returns 0 </pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<h3>NOT</h3> | ||
Returns 1 if a is not the same as b. | ||
|
||
<h4>Syntax</h4> | ||
<pre> a NOT b </pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 'a' IS NOT 'b' → returns 1 </pre> | ||
<pre> 'a' IS NOT 'a' → returns 0 </pre> | ||
<pre> 4 IS NOT 2+2 → returns 0 </pre> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h3>OR logical operator</h3> | ||
Returns 1 when condition a or b is true. | ||
|
||
<h4>Syntax</h4> | ||
<pre> condition a OR condition b </pre> | ||
|
||
<h4>Arguments</h4> | ||
None | ||
|
||
<h4>Example</h4> | ||
<pre> 4 = 2+2 OR 1 = 1 → returns 1 </pre> | ||
<pre> 4 = 2+2 OR 1 = 2 → returns 1 </pre> | ||
<pre> 4 = 2 OR 1 = 2 → returns 0 </pre> |