Combining an image with the Text Box

I have created a Lexicon Decision task. The part that I am struggling with is that I have two images shown at different points depending on the word that is shown. So for example is Hop is shown then after an image of a fountain pen will appear, if the word Top is shown then after an image of a megaphone will appear. (this is done via an excel file within loop). What I want to do is every time a fountain pen appears then a text box will appear for participants to write there answer in. This I have done, however, the text box appears every time the fountain pen and megaphone appears.

How do I do this so that the text box only appears with the Fountain Pen.

I was thinking using the Else code, however, I am unsure on how to begin this.

e.g.

if image == “Fountain Pen.jpeg”
???
Else
???

I attemped this, to see if this would fix the issue. But it did not. The idea of this code was that if the Fountain pen image showed up then the text box would appear, however, if the megaphone appeared then the text box would not.