- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
SRL & Loops
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-14-2012 01:10 AM - last edited on 02-03-2012 06:19 AM
Hi,
In Java 'FOR' loop, we buy fake watches know that we are allowed to use the instructions like 'continue'
and 'break'.
How to use the same instructions in Blaze 'FOR' loop??
Thanks,
Solved! Go to Solution.
Re: SRL & Loops
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Not the Solution
- Email to a Friend
- Report Inappropriate Content
01-16-2012 12:18 AM
for 'break' you can use 'such that' keywoard in Blaze
Eg:
count is an integer initially 0;
for each string in stringArray such that count is less than 3 do
{
<your functionality goes here>
count = count + 1;
}
Hope this helps...
thanks
tonu
Re: SRL & Loops
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Accept as Solution
- Email to a Friend
- Report Inappropriate Content
01-16-2012 02:00 PM
Hi,
You have explained a technical problem you have encountered, but you did not explain what you were trying to do. My point being that if you are trying to loop through all of a type of Blaze object and do something or count something, then a better technique would be to use a Pattern or Quantified Expression. You can find out how to use them by searching the PDF reference manual.
Tom
Business Rules Consulting, Inc.

