Jump to content

[SOLVED] IF statement returning field value only if not null


Pasa Mike

Recommended Posts

I've tried writing this a few different ways:

 

the goal is to return " - " + ['enddate'] only if the field ['enddate'] contains a value.

 

the end result being ['startdate'] - ['enddate'] or simply ['startdate'] if there is no enddate...

 

 

Thanks for the help... (the book i have for PHP is not very helpful)

Archived

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

×
×
  • 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.