mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
More expression help
This commit is contained in:
parent
2a6cff403b
commit
41a330f271
13
resources/function_help/text/*
Normal file
13
resources/function_help/text/*
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>* multiplication operator</h3>
|
||||
<p>Multiplication of two values</p>
|
||||
<p>If one of the values is NULL the result will be NULL.</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 * value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 * 4 → 20 </pre>
|
||||
<pre> 5 * NULL → NULL </pre>
|
13
resources/function_help/text/+
Normal file
13
resources/function_help/text/+
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>+ addition operator</h3>
|
||||
<p>Addition of two values</p>
|
||||
<p>If one of the values is NULL the result will be NULL.</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 + value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 + 4 → 9 </pre>
|
||||
<pre> 5 + NULL → NULL </pre>
|
13
resources/function_help/text/-
Normal file
13
resources/function_help/text/-
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>- subtract operator</h3>
|
||||
<p>Subtraction of two values</p>
|
||||
<p>If one of the values is NULL the result will be NULL.</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 - value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 - 4 → 1 </pre>
|
||||
<pre> 5 - NULL → NULL </pre>
|
13
resources/function_help/text/<
Normal file
13
resources/function_help/text/<
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>< Less than operator</h3>
|
||||
<p>Compares two values and evaluates to 1 if the left value is less than the right value</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 < value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 < 4 → 0 </pre>
|
||||
<pre> 5 < 5 → 0 </pre>
|
||||
<pre> 4 < 5 → 1 </pre>
|
13
resources/function_help/text/<=
Normal file
13
resources/function_help/text/<=
Normal file
@ -0,0 +1,13 @@
|
||||
<h3><= Less than or equal operator</h3>
|
||||
<p>Compares two values and evaluates to 1 if the left value is less than or equal to the right value</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 <= value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 <= 4 → 0 </pre>
|
||||
<pre> 5 <= 5 → 1 </pre>
|
||||
<pre> 4 <= 5 → 1 </pre>
|
14
resources/function_help/text/<>
Normal file
14
resources/function_help/text/<>
Normal file
@ -0,0 +1,14 @@
|
||||
<h3><> Unequal operator</h3>
|
||||
<p>Compares two values and evaluates to 1 if they are not equal.</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 <> value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 <> 4 → 1 </pre>
|
||||
<pre> 4 <> 4 → 0 </pre>
|
||||
<pre> 5 <> NULL → NULL </pre>
|
||||
<pre> NULL <> NULL → NULL </pre>
|
13
resources/function_help/text/>
Normal file
13
resources/function_help/text/>
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>> Greater than operator</h3>
|
||||
<p>Compares two values and evaluates to 1 if the left value is greater than the right value</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 > value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 > 4 → 1 </pre>
|
||||
<pre> 5 > 5 → 0 </pre>
|
||||
<pre> 4 > 5 → 0 </pre>
|
13
resources/function_help/text/>=
Normal file
13
resources/function_help/text/>=
Normal file
@ -0,0 +1,13 @@
|
||||
<h3>>= Greater or equal operator</h3>
|
||||
<p>Compares two values and evaluates to 1 if the left value is greater than or equal to the right value</p>
|
||||
|
||||
<h4>Syntax</h4>
|
||||
<pre> value1 >= value2 </pre>
|
||||
|
||||
<h4>Arguments</h4>
|
||||
None
|
||||
|
||||
<h4>Examples</h4>
|
||||
<pre> 5 >= 4 → 1 </pre>
|
||||
<pre> 5 >= 5 → 1 </pre>
|
||||
<pre> 4 >= 5 → 0 </pre>
|
@ -428,18 +428,18 @@ void QgsExpressionBuilderWidget::updateFunctionTree()
|
||||
mModel->clear();
|
||||
mExpressionGroups.clear();
|
||||
// TODO Can we move this stuff to QgsExpression, like the functions?
|
||||
registerItem( "Operators", "+", " + ", tr( "Addition operator" ) );
|
||||
registerItem( "Operators", "-", " - ", tr( "Subtraction operator" ) );
|
||||
registerItem( "Operators", "*", " * ", tr( "Multiplication operator" ) );
|
||||
registerItem( "Operators", "+", " + " );
|
||||
registerItem( "Operators", "-", " - " );
|
||||
registerItem( "Operators", "*", " * " );
|
||||
registerItem( "Operators", "/", " / ", tr( "Division operator" ) );
|
||||
registerItem( "Operators", "%", " % ", tr( "Modulo operator" ) );
|
||||
registerItem( "Operators", "^", " ^ ", tr( "Power operator" ) );
|
||||
registerItem( "Operators", "=", " = ", tr( "Equal operator" ) );
|
||||
registerItem( "Operators", ">", " > ", tr( "Greater as operator" ) );
|
||||
registerItem( "Operators", "<", " < ", tr( "Less than operator" ) );
|
||||
registerItem( "Operators", ">", " > " );
|
||||
registerItem( "Operators", "<", " < " );
|
||||
registerItem( "Operators", "<>", " <> ", tr( "Unequal operator" ) );
|
||||
registerItem( "Operators", "<=", " <= ", tr( "Less or equal operator" ) );
|
||||
registerItem( "Operators", ">=", " >= ", tr( "Greater or equal operator" ) );
|
||||
registerItem( "Operators", "<=", " <= " );
|
||||
registerItem( "Operators", ">=", " >= " );
|
||||
registerItem( "Operators", "||", " || " );
|
||||
registerItem( "Operators", "IN", " IN " );
|
||||
registerItem( "Operators", "LIKE", " LIKE " );
|
||||
|
Loading…
x
Reference in New Issue
Block a user