How to use “OR” condition in IF ELSE statement

5 pts.
Tags:
Word 2007
XML
Hi, How to compare multiple element values in if else condition of XML? Is there any syntax like "OR" example if the element is "NAME" and it has values as ('RAMA','SHAYAM','SUNNY','DAVID')? Is there anything like <?if:NAME='RAMA' OR 'SHAYAM' OR 'SUNNY'?> I want to use this in if else statement ..for every value like 'RAMA', 'SHYAM' I would like to have different result. How it can be archived?

Software/Hardware used:
explorer 7 and ms word 2007

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try this

Select * from YOURFILE
Where NAME IN(‘RAMA’, SHAYAM’, ‘SUNNY’, ‘DAVID’)

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    I don't think this is related to SQL...
    79,890 pointsBadges:
    report
  • The most-watched IT questions: April 12, 2012 - ITKE Community Blog
    [...] 6. Are you a XML expert? Come share your knowledge as Sinha20 needs help comparing multiple element values. [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: