Printing text only if field has value?

admin

Administrator
Staff member
For example, under normal conditions (when the field has a value) I would print this:

Time: $time minutes

But what if $time had no value, and I didn't want "Time:" or "minutes" to show up?

I suppose the coding would be like... if $time has a value, then print "Time:"... etc...

The problem is that I don't know the exact code for this. Hopefully someone here does.
 
Back
Top