mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
parent
364df90303
commit
de2b6a9688
15
resources/function_help/if
Normal file
15
resources/function_help/if
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<h3>if function</h3>
|
||||||
|
Tests a condition and returns a different result depending on the conditional
|
||||||
|
check.
|
||||||
|
|
||||||
|
<h4>Syntax</h4>
|
||||||
|
<pre>IF (condition, result_when_true, result_when_false)</pre>
|
||||||
|
|
||||||
|
<h4>Arguments</h4>
|
||||||
|
condition → The condition which should be checked.
|
||||||
|
result_when_true → The result which will be returned when the condition is True.
|
||||||
|
result_when_false → The result which will be returned when the condition is False.
|
||||||
|
|
||||||
|
<h4>Example</h4>
|
||||||
|
<pre> IF( 1, 'One', 'Not One' ) → returns 'One' </pre>
|
||||||
|
<pre> IF( 8, 'One', 'Not One' ) → returns 'Not One' </pre>
|
Loading…
x
Reference in New Issue
Block a user