I see, I actually didn't do this with nested as I am not sure how to 
convert this to nested sequence if condition due to the following reason:
I have condition A or B, if I switch to nested it means changing it to 
*'and'* so it needs to be not (not A and not B).
I don't know how to handle the external not in a nested if.
Instead I did the following workaround, I will be glad to hear if someone 
has a better idea:

define or_condition
            set 'v:no_host_id': "false"
            set 'v:is_host_node': "false"
            sequence if: '${f:node.host_id} is not set'
                set 'v:no_host_id': "true"
            sequence if: '${f:node.host_id} == ${f:node.id}'
                set 'v:is_host_node': "true"
            sequence if: '${v:no_host_id} or ${v:is_host_node}'
                yada yada....

On Wednesday, December 11, 2013 12:02:28 AM UTC+2, John Mettraux wrote:
>
>
> On Tue, Dec 10, 2013 at 06:42:00AM -0800, Eitan Yanovsky wrote: 
> > 
> > I also tried converting the or into and and not (using demorgan 
> > transformation logic) and it didn't help. 
> > I can try nested if but I wish to avoid this workarounds and understand 
> why 
> > this doesn't work as expected. 
>
> Hello, 
>
> I'm sorry that's a limitation of the "is [not] set", "is [not] empty" set 
> of 
> tools. I've always meant to go for something better but haven't found the 
> time. They're meant to be used standalone (not with an "or" or an "and"). 
>
> I guess the nested way is OK. 
>
>
> Sorry again, 
>
> -- 
> John Mettraux   -   http://lambda.io/jmettraux 
>
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to