XML IF statement <or>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chez
    New Member
    • May 2011
    • 9

    #1

    XML IF statement <or>

    I was trying to compare a keyword with 2 word using "or" but it came out error on the logic.

    This is the statement

    Code:
    <If Test="$(Keyword)[.='Up' or .='Above']">

    May I know if there is any mistake in the above statement?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there is a mistake in the if() construct. conditions are usually of the form
    if (value comparison_oper ator value) [logical_operato r (value comparison_oper ator value) […]]

    Comment

    Working...