<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body>
<p><font size="-1"><font face="Century Gothic">Hi all,</font></font></p>
<p><font size="-1"><font face="Century Gothic">i have this simple
field calc function:</font></font></p>
<p><font size="-2" face="Century Gothic">from qgis.core import *<br>
from qgis.gui import *<br>
<br>
@qgsfunction(args='auto', group='Custom')<br>
def fill_down(value1, feature, parent):<br>
<br>
k= 20<br>
if value1 == NULL:<br>
k = 10<br>
<br>
return k</font></p>
<p><font size="-2" face="Century Gothic"> <font size="-1">it should
return 10 if the field is empty but it doesn't work.</font></font></p>
<p><font size="-2" face="Century Gothic"><font size="-1">Any
suggestions?</font></font></p>
<p><font size="-2" face="Century Gothic"><font size="-1">Best
regards</font><br>
</font></p>
</body>
</html>