I need to somehow get my img src statment
<img src="<?php echo $imagefileanim?>">
into the if statement below but am a bit perplexed on how best to write it, I've tried using an echo but that doesn' t work
<?php
if (file_exists($imagefileanim)) {
// put image source statement here???
} else {
}
?>