Syntax error in parameter formula of field calculator funtion

المشرف العام

Administrator
طاقم الإدارة
I'm using a QGIS 2.8.1 in windows.Have some doubts with syntax when use string in python console. I want to use the field calculator funtion like:

processing.runalg('qgis:fieldcalculator', input, field_name, type_field, width, precision, Create new field, formula, output)In the formula parameter I want use the condition:

case when "Municipio" is NULL then 'PENICHE'I know that PENICHE is a string, so have to be between '' (plicas) but all the expression should be too between '' (plicas) like:

' case when "Municipio" is NULL then 'PENICHE' ' The problem is that there happened a syntax error. How can I correct the expression?Any help?

Thanks



أكثر...
 
أعلى