~paul-lucas/zorba/bug-932374

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/flwor/flwor_op02.xq

  • Committer: Paul J. Lucas
  • Date: 2012-09-21 20:26:47 UTC
  • mfrom: (10819.2.235 zorba)
  • Revision ID: paul@lucasmail.org-20120921202647-fy9n4jduhrnljrnb
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(: flwor has if statement in return collapsed into existing where as
 
2
joining of original where and if condition through boolean AND operation 
 
3
and will chain multiple nested if statements :)
 
4
 
 
5
for $x in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
 
6
where $x < 8
 
7
return if ($x > 2)
 
8
       then if ($x mod 2 eq 0) then $x else ()
 
9
       else ()