"IF condition" is this possible?

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

By videopixel - July 15, 2012 - edited: July 15, 2012

Could i call a field from a record into an if condition?

<?PHP if ($record['sample'] == "book"): ?>

I want to replace "book" with

<?PHP if ($record['sample'] == "<?php echo $myRecord['category'] ?>"): ?>

What is the correct way to do this?


thx

Re: [Jason] "IF condition" is this possible?

By videopixel - July 16, 2012

Thanks Jason!