Re: [Toledoh] If.. Contains...
Hey Tim,
It looks like you're using data from getRecords()? If so, CMS Builder will have made 2 arrays for you from the multi-record field that you can use for easy php comparison.
$record['product_group:values'] and $record['product_group:labels']
To see if "4" is in the product group values array you can use this:
<?php if (in_array('4', $record['product_group:values'])): ?>
Hope that helps,
Robin
Robin
Programmer
interactivetools.com