My model uses some attributes in a layer for Calculate Fields processes. Example down below is the attribute 'Sp1InvTPA' which is an Integer field. If this attribute is not filled out in the layer before running the model, then the user has the option to enter it as a parameter in the model. Ideally, if this is already filled out in the layer, then the user does not need to enter the parameter, so the Arcade expression looks to utilize it from the layer first, otherwise the parameter will be used instead. If it's not entered in either location, it should remain as Null. The Arcade expression below expects there to be quotes around the Inline Variable name: "%Species 1 TPA%". So, when the user does not fill out the attribute in the layer or the parameter, instead of returning Null, the model thinks the text, %Species 1 TPA% has been entered in the Variable and tries to enter this in the Integer field. Maybe I'm going about this the wrong way. Please help!
