Jump to content

Conditional Code Question


PeterD

Recommended Posts

You have this conditional code, If I want  to output certain code only if the specific custom field isn't empty:

<?php if($CustomFields->field('jr_fieldname',$listing,false,false) != ''):?> <!-- Add your code here--> <?php endif;?>

This runs,

But which code I use, if I to output certain code only if the specific custom field is empty?

Chance "false" to "true" didn´t runs.

 

Edited by PeterD
Link to comment
×
×
  • Create New...