I would like to execute following If else Xpath 2.0 statement.
String text = nav.Evaluate("if(/additionalFields/
field[@name='distribution']/text() = '140') then 'C' else ' '
").ToString();
However I am getting following error message:
'if(/additionalFields/field[@name='distribution']/text() = '140') then
'C' else ' ' ' has an invalid token.
Is there any other way to achieve the result? Any help would be
appreciated.