Download Blaze Trial
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Close To access this section, please choose the Community Neighborhood in which you have the most interest.

» Business Rules Management
» Collections & Recovery
» Fraud Management
» Risk Management
» Scoring
Reply
Visitor
thomasdu
Posts: 1
Registered: 01-14-2012
Accepted Solution

SRL & Loops

[ Edited ]

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,

Contributor
KMehta
Posts: 18
Registered: 03-22-2011

Re: SRL & Loops

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
 

Valued Contributor
Posts: 158
Registered: 03-12-2009

Re: SRL & Loops

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.