Jack,

There is a tops:for magic property that you can use in a ui:forEach to provide 
iteration. tops:for is documented in the TBC help resources for “TopBraid 
SPARQL property functions”:

tops:for
This property can be used to implement loops over a range of integer values.
 
Syntax: ?index tops:for ( [startIndex] [endIndex] )
Description: The function iterates over all xsd:integer values >= startIndex 
and <= endIndex and assigns all those values to the variable on the left side
Example: In the following query, the variable index will be bound to the 
xsd:integer values 2, 3, and 4.
?index tops:for (2 4)
Ralph

> On Aug 6, 2019, at 12:17 PM, Jack Hodges <[email protected]> wrote:
> 
> I would like to perform a while or do-while iteration with SWP. That is, 
> condition based rather than item based as in ui:foreach. I see nothing in the 
> manual about it so I'll look in the libraries but thought I ask in parallel. 
> I do not know if a ui:if and a ui:foreach can produce the same results. Any 
> pointers to examples or documentation appreciated.
> 
> Jack
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/849cd590-7cfa-4068-b93f-9516ab7c2fcf%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/849cd590-7cfa-4068-b93f-9516ab7c2fcf%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/CDA935F0-FE8D-4346-9E24-9DB9DA4465AE%40topquadrant.com.

Reply via email to