Inline filename if statement