Hi all,
I really like the C-style if-else syntax as well as the C-style '++' and
'--' operators for incrementing and decrementing a number, respectively.
But I am surprised to see that the following does not work:
<hansl>
scalar s = 0
loop i=1..2 -q
catch s = (i==1) ? 1 : +1 # no effect
s
catch s = (i==1) ? 1 : s++ # no effect
s
catch s = (i==1) ? 1 : s+1 # works as intended
s
endloop
</hansl>
Why is the 2nd approach not working here?
Thanks,
Artur