From 1670a2742384ba8485978e68b3e828faf5d3293c Mon Sep 17 00:00:00 2001 From: astroidex Date: Sun, 15 Sep 2013 17:12:57 +0200 Subject: [PATCH] new help texts for operators --- resources/function_help/AND | 13 +++++++++++++ resources/function_help/ILIKE | 13 +++++++++++++ resources/function_help/IS | 18 ++++++++++++++++++ resources/function_help/LIKE | 13 +++++++++++++ resources/function_help/NOT | 14 ++++++++++++++ resources/function_help/OR | 13 +++++++++++++ 6 files changed, 84 insertions(+) create mode 100644 resources/function_help/AND create mode 100644 resources/function_help/ILIKE create mode 100644 resources/function_help/IS create mode 100644 resources/function_help/LIKE create mode 100644 resources/function_help/NOT create mode 100644 resources/function_help/OR diff --git a/resources/function_help/AND b/resources/function_help/AND new file mode 100644 index 00000000000..ac88fe40d5b --- /dev/null +++ b/resources/function_help/AND @@ -0,0 +1,13 @@ +

AND logical operator

+Returns 1 when condition a and b are true. + +

Syntax

+
 condition a AND condition b 
+ +

Arguments

+None + +

Example

+
 4 = 2+2 AND 1 = 1  → returns 1 
+
 4 = 2+2 AND 1 = 2  → returns 0 
+ diff --git a/resources/function_help/ILIKE b/resources/function_help/ILIKE new file mode 100644 index 00000000000..9e20bd559f3 --- /dev/null +++ b/resources/function_help/ILIKE @@ -0,0 +1,13 @@ +

LIKE expression

+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. + +

Syntax

+
string/number LIKE pattern
+ +

Arguments

+None + +

Example

+
 'A' ILIKE 'A'  → returns 1 
+
 'A' ILIKE 'a'  → returns 1 
+
 'A' ILIKE 'B'  → returns 0 
diff --git a/resources/function_help/IS b/resources/function_help/IS new file mode 100644 index 00000000000..3b004432a43 --- /dev/null +++ b/resources/function_help/IS @@ -0,0 +1,18 @@ +

IS expression

+Returns 1 if a is the same as b. + +

Syntax

+
a is b
+ +

Arguments

+None + +

Example

+
 'A' IS 'A'  → returns 1 
+
 'A' IS 'a'  → returns 0 
+
 4 IS 4      → returns 1 
+
 4 IS 2+2    → returns 1 
+
 4 IS 2      → returns 0 
+
 4 IS 2      → returns 0 
+
 $geometry IS NULL  → returns 0, if your geometry is not NULL
+ diff --git a/resources/function_help/LIKE b/resources/function_help/LIKE new file mode 100644 index 00000000000..fbc39b4f50a --- /dev/null +++ b/resources/function_help/LIKE @@ -0,0 +1,13 @@ +

LIKE expression

+Returns 1 if the first parameter matches the supplied pattern. Works with numbers also. + +

Syntax

+
string/number LIKE pattern
+ +

Arguments

+None + +

Example

+
 'A' LIKE 'A'  → returns 1 
+
 'A' LIKE 'a'  → returns 0 
+
 'A' LIKE 'B'  → returns 0 
diff --git a/resources/function_help/NOT b/resources/function_help/NOT new file mode 100644 index 00000000000..631cd764716 --- /dev/null +++ b/resources/function_help/NOT @@ -0,0 +1,14 @@ +

NOT

+Returns 1 if a is not the same as b. + +

Syntax

+
 a NOT b 
+ +

Arguments

+None + +

Example

+
 'a' IS NOT 'b'  → returns 1 
+
 'a' IS NOT 'a'  → returns 0 
+
 4 IS NOT 2+2    → returns 0 
+ diff --git a/resources/function_help/OR b/resources/function_help/OR new file mode 100644 index 00000000000..83d204f9877 --- /dev/null +++ b/resources/function_help/OR @@ -0,0 +1,13 @@ +

OR logical operator

+Returns 1 when condition a or b is true. + +

Syntax

+
 condition a OR condition b 
+ +

Arguments

+None + +

Example

+
 4 = 2+2 OR 1 = 1  → returns 1 
+
 4 = 2+2 OR 1 = 2  → returns 1 
+
 4 = 2   OR 1 = 2  → returns 0