Email Templates - Hide Variable when not used

Email Templates - Hide Variable when not used

I have created a custom announcement template and if I do not set an End Date (the To date and time) it will show the variable name in the email instead of just leaving it blank.  Below is an example.  In my example, I did not set the To date in the announcement because this would be a current disruption announcement that is ongoing.

Start date : Mar 12, 2024 08:00 AM
End by date : $EndDate

                New to ADManager Plus?

                  New to ADSelfService Plus?