I need to fill a field using an expression, but including a condition. I have two fields: GRIDCODE (field reference, unique values from 0 to 2" ERRO - blank field I would fill as follow: If GRIDCODE value is 0, then ERRO value is: "Não há diferença" If GRIDCODE value is 1, then ERRO value is: "Área de uso consolidado cadastrada como nativa" If GRIDCODE value is 2, then ERRO value is: "Área de vegetação nativa cadastrada como uso consolidado" I tried use this expression, but it doens´t work.. looks like it has a sintaxe error. If [GRIDCODE] = 0 Then [Erro] = "Não há diferença" ELSEIF [GRIDCODE] = 1 Then [Erro] = "Área de uso consolidado cadastrada como nativa" ELSEIF [GRIDCODE] = 2 Then [Erro] = "Área de vegetação nativa cadastrada como uso consolidado" End If Thank you very much!
... View more