How to use exists operation in Function on sequence Using XPath in Xml

In this article I will explain exists operation of function on sequence.
  • 1710

Introduction

The exists operation of Function on sequence can be used to return true if the value of the arguments is not an empty sequence, otherwise it returns false.

Syntax
 

exists ((item,item,item,item))

Example

exists ((remove( "Name" ,"address", "contact", "email"), 1))
exists ((remove( "Name" ,"address", "contact", "email"), 4))
exists ((remove( "Name" ,"address", "contact", "email"), 10))
exists ((remove( "Name" ,"address", "contact", "email"), 0))

Output

true
false
false
true

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.