Index: branches/RC/core/kernel/processors/tag_processor.php =================================================================== diff -u -N -r9713 -r9896 --- branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9713) +++ branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9896) @@ -134,7 +134,7 @@ function PreparePostProcess(&$params) { - $flags = Array('js_escape', 'result_to_var', 'pass_params', 'html_escape', 'strip_nl'); + $flags = Array('js_escape', 'equals_to', 'result_to_var', 'pass_params', 'html_escape', 'strip_nl'); $flag_values = Array(); foreach ($flags as $flag_name) { @@ -161,6 +161,13 @@ // 1 - strip \r,\n; 2 - strip tabs too $ret = preg_replace($flag_values['strip_nl'] == 2 ? "/[\r\n\t]/" : "/[\r\n]/", '', $ret); } + + // TODO: in new parser implement this parameter in compiled code (by Alex) + if ($flag_values['equals_to'] !== false) { + // we can compare to "0", that's why using strict equivalence operator + $ret = ($ret == $flag_values['equals_to']); + } + if ($flag_values['result_to_var']) { $this->Application->Parser->SetParam($flag_values['result_to_var'], $ret); $ret = '';