I'm building a script in the graphical modeler. I have different inputs that I have to give and one is optional.
I'm trying to build a conditional branch
that check the presence or absence of the optional input. But I can't find an expression for that.
Any idea?
conditional branch
. But my question is what expression I can use to test if my layerinput2
, which is optional, is given in the model? For exemple, in theconditional branch
, the expression would belayer_exist(@input2)
. But the expressionlayer_exist
doesn't exist... So is it a way to do that?