Nope, your best solution is to do your value matching with a CB Query Field then output and 1 if success or 0 if fail then match 1 or 0 in your CB IF statement with the query field. Example as follows.
Query:
Code:
SELECT IF( `cb_field` = `cb_field`, 1, 0 ) FROM `#__comprofiler` WHERE `id` = '[user_id]'
Substitution:
[cb:if cb_query="1"]Pass[/cb:if]