Welcome, Guest Login

Support Center

Conditional Expressions with HTML/CSS

Last Updated: Oct 14, 2015 05:38PM EDT

ADVANCED TOPIC: Assumes some knowledge of HTML and CSS.

Sometimes you want to show something only if there is data available to show. For example, let's say you're formatting some HTML and want to show the telephone number of a business. The following formats can do the trick.

<span style="[[ds:/Eats/restaurant/telephone:cssinline]]">and their 
phone number is [[ds:/Eats/restaurant/telephone]]</span>

Or, for block style elements, use this:

<div style="[[ds:/Eats/restaurant/telephone:cssblock]]"><b>Phone 
Number</b> [[ds:/Eats/restaurant/telephone]]</div>
 

See also

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets1.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete