Hello Matt383,
In regards to the Pen Input control, it does not contain anything specific we could use as reference for a If statement. Instead what would need to be done is we setup a couple variables that can be modified based off user needing to interact with the Pen input.
This would me we control the mode the Pen input is in so that when it does have to grab the image, if the pen is not expected to have an input it will fill it out with a set value, while when it is enabled it uses that instead.
For Example, I used a button that when clicked does the if statement that confirms if the Pen input was in edit mode(it cant confirmed if it is filled out, so by default the input is disabled/in view mode), if it is in edit mode it returns true, else it returns false.
mirroring this to your scenario, you would likely setup a variable that by default has a stock value in it(I.E. the Blank image), then when the button to submit is selected it confirms if the pen input had been enabled and if so, updates the variable to be the pen input image instead, otherwise it leaves it.
Note: You could also just upload these and use True or false so that when the image is loaded in the submit flow button it decides which item it grabs based off that value, this would basically be a second step but this way you dont have to just fill out the variable with an image so it can be used for other statements as well.
The whole idea behind this is that we are doing the If statement before we get to the Submit button with the HTML to read the image so that when it runs it already has everything it needs prepared.
The biggest criteria to note is that you would need to make sure the Pen input is disabled or in Edit mode by Default, and only when the user selects an option(Say a toggle or checkbox) that it enables the Pen Input to be used.
As long as the toggle is setup to disable it again if its toggled off it will leave only the scenario of a user toggling it and not providing input as an issue.
have a good day,