Hi all,

i have this simple field calc function:

from qgis.core import *
from qgis.gui import *

@qgsfunction(args='auto', group='Custom')
def fill_down(value1, feature, parent):

    k= 20
    if value1 == NULL:
        k = 10

    return k

it should return 10 if the field is empty but it doesn't work.

Any suggestions?

Best regards

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to