Skip to content

Commit 1670a27

Browse files
author
astroidex
committed
new help texts for operators
1 parent 6ec9e75 commit 1670a27

File tree

6 files changed

+84
-0
lines changed

6 files changed

+84
-0
lines changed

resources/function_help/AND

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h3>AND logical operator</h3>
2+
Returns 1 when condition a and b are true.
3+
4+
<h4>Syntax</h4>
5+
<pre> condition a AND condition b </pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 4 = 2+2 AND 1 = 1 &rarr; returns 1 </pre>
12+
<pre> 4 = 2+2 AND 1 = 2 &rarr; returns 0 </pre>
13+

resources/function_help/ILIKE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h3>LIKE expression</h3>
2+
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.
3+
4+
<h4>Syntax</h4>
5+
<pre>string/number LIKE pattern</pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 'A' ILIKE 'A' &rarr; returns 1 </pre>
12+
<pre> 'A' ILIKE 'a' &rarr; returns 1 </pre>
13+
<pre> 'A' ILIKE 'B' &rarr; returns 0 </pre>

resources/function_help/IS

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<h3>IS expression</h3>
2+
Returns 1 if a is the same as b.
3+
4+
<h4>Syntax</h4>
5+
<pre>a is b</pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 'A' IS 'A' &rarr; returns 1 </pre>
12+
<pre> 'A' IS 'a' &rarr; returns 0 </pre>
13+
<pre> 4 IS 4 &rarr; returns 1 </pre>
14+
<pre> 4 IS 2+2 &rarr; returns 1 </pre>
15+
<pre> 4 IS 2 &rarr; returns 0 </pre>
16+
<pre> 4 IS 2 &rarr; returns 0 </pre>
17+
<pre> $geometry IS NULL &rarr; returns 0, if your geometry is not NULL</pre>
18+

resources/function_help/LIKE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h3>LIKE expression</h3>
2+
Returns 1 if the first parameter matches the supplied pattern. Works with numbers also.
3+
4+
<h4>Syntax</h4>
5+
<pre>string/number LIKE pattern</pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 'A' LIKE 'A' &rarr; returns 1 </pre>
12+
<pre> 'A' LIKE 'a' &rarr; returns 0 </pre>
13+
<pre> 'A' LIKE 'B' &rarr; returns 0 </pre>

resources/function_help/NOT

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<h3>NOT</h3>
2+
Returns 1 if a is not the same as b.
3+
4+
<h4>Syntax</h4>
5+
<pre> a NOT b </pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 'a' IS NOT 'b' &rarr; returns 1 </pre>
12+
<pre> 'a' IS NOT 'a' &rarr; returns 0 </pre>
13+
<pre> 4 IS NOT 2+2 &rarr; returns 0 </pre>
14+

resources/function_help/OR

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<h3>OR logical operator</h3>
2+
Returns 1 when condition a or b is true.
3+
4+
<h4>Syntax</h4>
5+
<pre> condition a OR condition b </pre>
6+
7+
<h4>Arguments</h4>
8+
None
9+
10+
<h4>Example</h4>
11+
<pre> 4 = 2+2 OR 1 = 1 &rarr; returns 1 </pre>
12+
<pre> 4 = 2+2 OR 1 = 2 &rarr; returns 1 </pre>
13+
<pre> 4 = 2 OR 1 = 2 &rarr; returns 0 </pre>

0 commit comments

Comments
 (0)