inline JavaScript not working in templates

inline JavaScript not working in templates

When importing an HTML file as a template, no javascript code is recognized
For example, I need to hide a field if it does not contain data


<script>
if(${Proforma Invoice.Billing Code} != "null")
then
ZIP Code:
<font size="2">${Proforma Invoice.Billing Code}</font><br>
</script>

Appreciate your fast response