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

In this article I will explain empty operation of function on sequence.
  • 1611

Introduction

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

Syntax
 

empty ((item,item,item,item))

Example

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

Output

false
true
true
false

Ask Your Question 

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

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.