I would like add something to my previous question (here: How to build QgsExpressions in python?)

How would I build the syntax inside this request in the case I wanted field_name to be also a variable pointing to a field name?

And in the case I wanted to multiply two numerical variables inside a request?

expression = QgsExpression('variablepointingtofield * variablepointingtolistitem ')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.