My code displays an image if the order status change matches the image name. However I have some order status' with no image and in this case there is an error where the picture cannot be found on the server.
I want to display an If Else statement where the image only shows if it matches the status name else if displays nothing.
<img src="<?php print get_template_directory_uri().'/images/truck-'.$order->status; ?>.png" />