Jump to content
PeterD

Conditional Code Question

Recommended Posts

PeterD
Posted (edited)

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

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
PeterD

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.