<br />This worked for my test example:<br />CASE<br />WHEN  "ID"  = 10<br />and "test" = 100 THEN 500<br />END<br /><br />Torsten<br />
<p><br /> Am 06-Feb-2015 21:49:34 +0100 schrieb lcelati@cci-paris-idf.fr:</p>
<blockquote style="margin-left: 0; padding-left: 5px; border-left: 2px solid navy;">Dear all,<br /><br /> I know the synthax in order to fill one field with only one condition <br /> (field calculator):<br /> --------------------------------------------------<br /> case<br /><br /> When "attribut" = 'value' then value<br /><br /> End<br /> ---------------------------------------------------<br /> But how to do populate automatically one field with two or three or more<br /> conditions? <br /><br /> I tried the following command but it does not work :<br /><br /><br /> -------------------------------------------------------------------<br /> case<br /><br /> When "attribut" = 'value" and "attribut number2" = 'value' then value<br /><br /> End<br /> ------------------------------------------------------------------<br /><br /> Could you throw light for me?<br /><br /><br /><br /> --<br /> View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Field-calculator-How-to-fill-column-with-several-conditions-tp5186069.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Field-calculator-How-to-fill-column-with-several-conditions-tp5186069.html</a><br /> Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br /> _______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br /><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote>