check filed is empty

web dev asked on June 26, 2018 16:07

hello dev i want check if field is empty in xml/text transformation but ist not work

{% IfEmpty(JobLink, "" ,"<a  href="+ JobLink() +" class="news">view this job </a><i class="fa fa-angle-right"></i>")  %}

Correct Answer

Peter Mogilnitski answered on June 26, 2018 16:39

You are using transformation function inside macro. You should use macrostring.IsNullOrEmpty(joblink,"","your link") instead.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.