Implement conditional node evaluation