[Qgis-user] Python Scripts (Boolean) in QGIS 3
Herbert Lincon
herbert_lincon_jau at hotmail.com
Tue Mar 12 05:48:14 PDT 2019
Hello everyone,
I have a script in QGIS 2.18 to receive the information from 4 boolean options as simple as that
##formula_1=boolean
##formula_2=boolean
##formula_3=boolean
##formula_4=boolean
##result=output string
if formula_1 == True:
result= 1
elif formula_2 == True:
result= 2
elif formula_3 == True:
result= 3
elif formula_4 == True:
result= 4
else:
result= 5
the problem is, this type of script doesn´t work in QGIS 3, and I´m a newbie in Python,
could someone translate that to the new method?
it´ll help me even begin to understand python 3
Thanks
Herbert Lincon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190312/517d8900/attachment.html>
More information about the Qgis-user
mailing list