Skip to content
Permalink
Browse files

Fix #11308 - Add missing IN operator

  • Loading branch information
NathanW2 committed Oct 4, 2014
1 parent 1e43cd3 commit f8a838d5c5993a7bf2efcf708b8ee0343b19f502
Showing with 14 additions and 0 deletions.
  1. +13 −0 resources/function_help/IN
  2. +1 −0 src/gui/qgsexpressionbuilderwidget.cpp
@@ -0,0 +1,13 @@
<h3>IN expression</h3>
Returns 1 if value is found within a list of values

<h4>Syntax</h4>
<pre>'a' IN ('a', 'b')</pre>

<h4>Arguments</h4>
None

<h4>Example</h4>
<pre> 'A' IN ('A','B") &rarr; returns 1 </pre>
<pre> 'A' IN ('C','B") &rarr; returns 0 </pre>

@@ -72,6 +72,7 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
.arg( tr( "Joins two values together into a string" ) )
.arg( tr( "Usage" ) )
.arg( tr( "'Dia' || Diameter" ) ) );
registerItem( "Operators", "IN", " IN " );
registerItem( "Operators", "LIKE", " LIKE " );
registerItem( "Operators", "ILIKE", " ILIKE " );
registerItem( "Operators", "IS", " IS " );

0 comments on commit f8a838d

Please sign in to comment.
You can’t perform that action at this time.