Okay, actually figured that out.
Turns out you need single quotes around the left-hand value as well.
So the loop should look more like this:
_loop :break_if => "'${/pending_documents}' == ''" do
# Some processing that slowly empties "pending_documents"
end
Otherwise the substitution yields " = ''" as a test, when the
intention is "'' == ''". >_<
- Enrico
On Aug 19, 3:20 pm, Enrico Bianco <[email protected]> wrote:
> Hi again openwferu-users,
>
> I have a process definition with a loop that goes a bit like this:
>
> _loop :break_if => "${/pending_documents} == ''" do
> # Some processing that slowly empties "pending_documents"
> end
>
> Basically, pending_documents is a comma-separated list. Using the
> trusty debugger, I've managed to figure out that the variable does
> eventually become an empty string, but for some reason the test
> doesn't work and the loop keeps on going, even when the variable is
> empty.
>
> Is there something I'm missing here?
>
> Thanks,
> Enrico
--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---