<div dir="ltr"><div><img src="cid:ii_jl8da0sd0" alt="image.png" width="114" height="82" style="margin-right: 0px;"><br></div><div><br></div><div><div>Hello, sure, I ran it and it worked.</div><div><br></div><div>Attached image</div><div><br></div><div>regards</div><div><br></div><div>Eddison</div></div></div><br><div class="gmail_quote"><div dir="ltr">El vie., 24 ago. 2018 a las 11:14, Fernando M. Roxo da Motta (<<a href="mailto:petro@roxo.org">petro@roxo.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Em qui, 2018-08-23 às 20:55 -0300, Renato Saboya escreveu:<br>
> Eddison, try this:<br>
> <br>
> CASE<br>
>   WHEN ( "W_BRILLO"  = 3 AND "W_PPT" =1 AND "W_TEMP"=2) THEN 2<br>
>   WHEN ("W_BRILLO"  = 2 AND "W_PPT" =2 AND "W_TEMP"=3) THEN 2<br>
>   WHEN ("W_BRILLO"  = 1 AND "W_PPT" =2 AND "W_TEMP"=3) THEN 3<br>
>   ELSE 5<br>
> END<br>
> <br>
> Note, however, that you don't have any of these combinations in your<br>
> table, so you will get only null values. I put the "ELSE 5" there just<br>
> so you know the code is working.<br>
> <br>
> Also, bear in mind that the lines inside CASE and END must be indented<br>
> by two spaces.<br>
<br>
  Sure about this?<br>
<br>
  I have used this kind of structure for layer labelling and most of the time I have indented just for readability purpose.  In 2.1? I have done ir withou an specific indentation and it worked quite well.<br>
<br>
<br>
  Slds<br>
<br>
<br>
  Roxo<br>
<br>
-- <br>
---------------- Non luctari, ludare -------------------+ WYSIWYG<br>
Fernando M. Roxo da Motta <<a href="mailto:petro@roxo.org" target="_blank">petro@roxo.org</a>>              | Editor?<br>
Except where explicitly stated I speak on my own behalf.|  VI !!<br>
                PU5RXO                                  | I see text,<br>
------------ Quis custodiet ipsos custodes?-------------+ I get text!<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>