I’m sorry, I guess I didn’t phrase what I wanted properly. I wanted to generate an image based on what the author of the post’s ID number is. So if the_author_ID for a post is 4, img4 will generate in that post. If the_author_ID for another post is 2, img2 will generate in that post.
I presumed an if-else would be the best way to go about this — I want the image to display, which is why I put it in the echo, not the_author_ID number.