This is in my resource field:
Searchable: [[YesNo? &value=`[[*searchable]]`]]
This is my snippet code:
<?php
/* Code for YesNo Snippet */
If ($value) {
$output = 'Yes';
} else {
$output = 'No';
}
return $output;
?>
Now when I preview my resource, it displays as "Searchable: Yes"
It displays as Yes, whether I check or uncheck the searchable option on the settings tab.
Can't spot what I'm doing wrong here, any help would be appreciated.
I'm using Revolution 2.2rc3, and reading from chap 7, pg 280 of the MODx official guide.
Thanks in advance everyone

.
[ed. note: ironchip last edited this post 14 years, 7 months ago.]