<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Edisson,</p>
<p>Not sure if you are really using QGIS? The screenshot you pasted
from the attribute table seems to be from another GIS (ESRI?).</p>
<p>Anyway - your CASE statement is wrong - no matter if it concerns
QGIS or ESRI, you cannot have several tests, separated by Kommas.
Either you have to combine the tests with AND/OR or you have to
use the IN/NOT IN statements, e.g. like</p>
<p>CASE<br>
WHEN val IN (1,3,5,7) THEN 'odd'<br>
WHEN val IN (2,4,6,8) THEN 'even'<br>
END</p>
<p>The syntax you used is invalid.</p>
<p>Hope this helps, no matter what GIS is concerned ;-)</p>
<p>Greetings,</p>
<p>Andreas<br>
</p>
<br>
<div class="moz-cite-prefix">Am 23.08.2018 um 22:04 schrieb Eddison
Araya:<br>
</div>
<blockquote type="cite"
cite="mid:CAC-LqCk1fDFmWa1Dh3Z0MJf7Tw6Jtn2TNgOOZbNkp0JgD9J3-g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>Hello, greetings, a question:<br>
</div>
<div><br>
</div>
<div><img src="cid:part1.43DF6EEB.76EC2AA3@carto.net"
alt="image.png" class="" width="279" height="139"><br>
</div>
<div><br>
</div>
<div>If I have that map: <b><a
href="https://www.dropbox.com/s/6hvnrb37fvc00wl/ejemplo.zip?dl=0"
target="_blank" moz-do-not-send="true">https://www.dropbox.com/s/6hvnrb37fvc00wl/ejemplo.zip?dl=0</a> </b><br>
</div>
<div><br>
</div>
<div>
<div>E eu quero dizer:</div>
<div> Se W_BRILLO is equal to 3, se W_PPT is equal to 1,
se W_TEMP is equal to 2, have a value of 2</div>
<div><br>
</div>
<div>Se W_BRILLO is equal to 2, se W_PPT
is equal to 2, se W_TEMP
is equal to 3, have a value of 2</div>
<div><br>
</div>
<div>Se W_BRILLO is equal to 1, se W_PPT
is equal to 2, se W_TEMP
is equal to 3, have a value of 3</div>
</div>
<div><br>
</div>
<div>I put this:<br>
</div>
<div><br>
</div>
<div>
<div>CASE</div>
<div><br>
</div>
<div>WHEN "W_BRILLO" = '3', "W_PPT" ='1', "W_TEMP" = '2'
THEN 2
<div>WHEN "W_BRILLO" = '2', "W_PPT" ='2', "W_TEMP" = '3'
THEN 2 <br>
<div>WHEN W_BRILLOI = '1', "W_PPT" ='2', "W_TEMP" =
'3' THEN 3</div>
</div>
<div><br>
</div>
<div> END</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>But I get an error!</div>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Eddison</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
</blockquote>
<br>
</body>
</html>