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.

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...