This is actually possible with XPaths. Check the following example
[(($Variable > 6) and Attribute='Correct') or (Attribute='Incorrect')]