Use conditional to Style Result

Permalink Browser Info Environment
I'm trying to use the following conditional statement to change the background color of an item if Featured is set to True. However, when I add this conditional statement no results are displayed. Am I using the if...else statements incorrectly?

http://198.58.88.21/~spd5420/index.php/treatment/directory/...

<if name="Featured" comparison="contains" value="True">
<div style="border-top: 1px solid #999; padding: 9px; background: #E6F3F7;">
<else>
<div style="border-top: 1px solid #999; padding: 9px;>
</else>
</if>
<div style="border-top: 1px solid #999; padding: 9px;">
<div><strong><field name="Company Name" /></strong></div>
<div><field name="First Name" /> <field name="Last Name" /></div>
<div><field name="Address" /></div>
<div><field name="City" />, <field name="State" /> <field name="Zip" /></div>
<div><field name="Country" /></div>
<div><field name="Phone" /></div>
<div><field name="Email" /></div>
<div><field name="Website" /></div>
</div>

Type: Pre-Sale
Status: New
pixo
View Replies:

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
Accordion Content (1.1), Advanced Forms (1.13.1), Calendar (1.4.6), Data Display (2.7.1.4), Dojo Google Translate (1.0), Extended Google Map (3.3.5), Flex Slider (1.0.1), googlesearch (1.1), Pro Forms (7.5.9), Quickie Player (0.9.1), Url Director (1.6.5).

# concrete5 Overrides
blocks/autonav, blocks/search, languages/nb_NO, languages/vi_VN, languages/zh_TW, languages/ja_JP, languages/sv_SE, languages/es_PE, languages/nl_NL, languages/ar, languages/fi_FI, languages/sk_SK, languages/es_AR, languages/ro_RO, languages/sl_SI, languages/da_DK, languages/fr_FR, languages/fa_IR, languages/tr_TR, languages/ru_RU, languages/pt_PT, languages/it_IT, languages/de_DE, languages/cs_CZ, languages/el_GR, languages/es_MX, languages/es_ES, themes/spdtheme

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.4.30

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, ffmpeg, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, rar, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, uploadprogress, xml, xmlreader, xmlrpc, xmlwriter, yaml, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 600
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 2000
memory_limit - 1024M
post_max_size - 1024M
sql.safe_mode - Off
upload_max_filesize - 1024M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.