This question has been answered by Bruno17. See the first response.
$referenceTvId-`12`; /* ID of the "other" TV */
$value = $modx->resource->getTVValue($referenceTvId);
$output = '';
switch ($value) {
case 'something':
$output = 'option 1';
break;
case 'something else':
$output = 'option 2';
break;
default:
$output = 'Default Value';
break;
}
return $output;$referenceTvId-`12`; /* ID of the "other" TV */
$value = $modx->resource->getTVValue($referenceTvId);
$output = '';
if ($value < 10) {
$output = 'option 1';
} elseif ($value >= 10 && $value <=20) {
$output = 'option 2';
} else {
$output = 'Default Value';
}
return $output;