hello devs i have to check if field is empty i use xml transformation and my macro like but its not working i just want check if exist any help thanks:
{% if(JobLink != null) { %} <span class="news"><a class="news" target="_blank" href="{%JobLink%}">view this job </a><i class="fa fa-angle-right"></i></span> {% } #%}
Hi,
I guess JobLink might not return as Null but an empty string?
Try using something like: {% string.IsNullOrEmpty(JobLink) ? "" : "Value:" JobLink |(identity)GlobalAdministrator%}
{% string.IsNullOrEmpty(JobLink) ? "" : "Value:" JobLink |(identity)GlobalAdministrator%}
thank you David
Please, sign in to be able to submit a new answer.