Skip to content

Instantly share code, notes, and snippets.

@jimdur8n
Created March 2, 2018 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimdur8n/a1f4d77cccd281be6489fc657155cf6b to your computer and use it in GitHub Desktop.
Save jimdur8n/a1f4d77cccd281be6489fc657155cf6b to your computer and use it in GitHub Desktop.
let $x := 1
let $array := array{0,3,0,-1,-3,999}
let $counter := array{0 to 10}
for $i in $counter
where $i <= $x
return
if ($array($x) != 999)
then
(
$array($x)
)
else()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment