Why are my if conditions not working when they are inside a javascript but they work in plain html? the {if longitude} outputs {if""} when viewed in the browser.
{exp:user:users sort="asc" limit="100" group_id="5"}
{if longitude}
{
"properties": {
"tags": [],
"phone": "",
"classifiers": ['a'],
"address": "",
"name": "{billing_name}",
"province": "{billing_region}",
"owner": "",
"postcode": "",
"city": "{billing_city}",
"country": "{billing_country}"
},
"type": "Place",
"geometry": {
"type": "Point",
"coordinates": [ {longitude},{latitude} ]
}
},
{/if}
{/exp:user:users}