If statement = to list item

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 8, 2012   (RSS)

By RGC - February 8, 2012

I am trying to display the words Under Contract when the Status for a list item is equal to Under Contract. The if statement I am using is as follows:

<?php if($record['status']==['Under Contract']): ?>
<tr>
<td colspan="2"class="burgundyFont" >UNDER CONTRACT</td>
</tr>
<?php endif ?>

Something is not correct as the page generates a syntax error
Thanks for your help!
Rod

Re: [Tom P] If statement = to list item

By RGC - February 8, 2012

Thanks Tom .... your code did the trick!
Rod