I've got an Automation rule set up to send an email to the issue assignee upon a transition. On the transition screen, there's the comment field so the user has the option to add a comment.
Part of the custom message in the email is as follows:
See below for the comment added:
<hr>Comment Author: <b>{{initiator.displayName}}</b>
Comment: <b>{{issue.comments.last.body}}</b><hr>
Which looks like this in the email:

However, because the comment on transition isn't mandatory, if no comment is added, the email will still display the LAST comment to be made on the issue (because of the {{issue.comments.last.body}} part).
Does anyone know of the smart value to ONLY pull the comment into the email IF it's added on the transition? (Basically, if no comment is added on the transition, I'd like this to be blank in the email)