| Iterate expression with two or more equals [message #515945] |
Mon, 22 February 2010 05:15  |
|
Originally posted by: 6lackbird.dev.gmail.com
How to write the condition for checking two or more expressions to iterate?
Option when inside iterate registered only one equals everything works
<enablement>
<with variable="accessRights">
<iterate ifEmpty="false" operator="or">
<equals value="viewer"/>
</iterate>
</with>
</enablement>
but worth only add one more condition, the test fails
<enablement>
<with variable="accessRights">
<iterate ifEmpty="false" operator="or">
<equals value="viewer"/>
<equals value="editor"/>
</iterate>
</with>
</enablement>
|
|
|
|
| Re: Iterate expression with two or more equals [message #516053 is a reply to message #516012] |
Mon, 22 February 2010 10:41   |
|
Originally posted by: 6lackbird.dev.gmail.com
Paul Webster пишет:
> operator="or" applies to how the values of each iteration are combined.
> The iterate children are combined using "and", so you would need to add
> <or> around your 2 equals.
>
> PW
>
so this is not working
<with variable="accessRights">
<iterate ifEmpty="false" operator="or">
<or>
<equals value="viewer"/>
</or>
<or>
<equals value="editor"/>
</or>
</iterate>
</with>
Could you show your variant?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09064 seconds