[Qgis-developer] conditions in the field calculator

Borys Jurgiel lists at borysjurgiel.pl
Wed Mar 16 05:20:37 EDT 2011


Dnia środa 16 marca 2011 o 10:08:47 Martin Dobias napisał(a):
> On Tue, Mar 15, 2011 at 12:52 PM, Borys Jurgiel <lists at borysjurgiel.pl> 
wrote:
> > Do conditional expressions work in the Field Calculator? They're listed
> > in the Help, but I can't make them working (as I do in Raster
> > Calculator).
> 
> Hi Borys
> 
> can you give me an example of what are you trying to do?

Just use the functionality listed in help - comparision operators:

(field_1 > field_2) * field_3 + (field_1 <= field_2) * field_4


More information about the Qgis-developer mailing list