Thanks David, Thanks for your quick response. It's works. can you tell me logic behind this ?
On Wed, Jun 19, 2013 at 11:44 AM, David Lee <[email protected]> wrote: > try **** > > ** ** > > declare variable $a external := ();**** > > ** ** > > ** ** > > ** ** > > ** ** > > ----------------------------------------**** > > David A. Lee**** > > [email protected]**** > > http://www.xmlsh.org**** > > ** ** > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Kunal Chauhan > *Sent:* Wednesday, June 19, 2013 2:10 AM > *To:* [email protected] > *Subject:* [xquery-talk] value not bound exception while using empty()**** > > ** ** > > Hello,**** > > Whenever I declare an external variable and I don't supply any value to > it. and try to run empty() it gives me an error stating that value unbound. > **** > > Stated error is right. but as per the requirement. If I have a variable > and that variable doesn't have any value than it should give me result of > empty() true.**** > > For eg. > > declare variable $a external; > > return empty($a) **** > > I am execute this query for that purpose only, whether $a is empty or not. > **** > > If I initialize it with space or something than empty() gives me result > false.**** > > might be I am missing something.**** > > ** ** > > Regards,**** > > > -- **** > > *Kunal Chauhan***** > > [email protected]**** > > [+918655517141]**** > -- *Kunal Chauhan* [email protected] [+918655517141]
_______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
