Lou,
<br/><br/>I was trying to use the ReadStream, but the issue is to get execution to go back to the top. &nbsp;If I send the upToEnd message, it still executes from the same line and goes through the rest of the tests.
<br/><br/><br/>Sincerely,
<br/><br/>Joe.
<br/><br/><br/><div class='shrinkable-quote'><br/>&gt; On May 9, 2016, at 3:56 PM, Louis LaBrunda [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4894218&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br/>&gt; 
<br/>&gt; Hi Joe, 
<br/>&gt; 
<br/>&gt; You can map your collection to a stream and then use the stream methods to traverse the 
<br/>&gt; collection. 
<br/>&gt; 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; stream := ReadStream on: myCollection. 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; [stream atEnd] whileFalse: [:item | 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item := stream next. 
<br/>&gt; &quot;I'm not sure upToEnd is the right method here but it is close. &nbsp;Look around, I'm sure you will 
<br/>&gt; find what you need.&quot; 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item doSomeWork. 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (when you think you are done with item) ifTrue: [stream upToEnd]. 
<br/>&gt; &nbsp; &nbsp; &nbsp; &nbsp; ]. 
<br/>&gt; 
<br/>&gt; Lou 
<br/>&gt; 
<br/>&gt; On Mon, 9 May 2016 16:00:58 -0500, Joseph Alotta &lt;[hidden email]&gt; wrote: 
<br/>&gt; 
<br/>&gt; &gt;I don’t think any of the solutions work for my case. 
<br/>&gt; &gt; 
<br/>&gt; &gt;I want to evaluate several different variable for each step, make calculations and if all of the conditions are met, then skip to the next item, otherwise, do the next step of calculations. 
<br/>&gt; &gt; 
<br/>&gt; &gt;The project is reading comma deliminated bank or credit card files, taking a column of data, counting various characters, and trying to determine what kind of data it is. &nbsp;For example, a column of data with two slash characters and eight digits per line is likely to be a date field. &nbsp;A column of data with more than 3 letter characters and a percentage of digits and a percentage of hash signs is likely to be a payee field. &nbsp;A column of data with no spaces, no digits, no special characters is likely to be a type of transaction field. &nbsp;A column of data with one period per item, and only digits or a minus sign is &nbsp;likely to be a amount field, and a column of data with a high percentage of zero length items and the rest having C or K and a pound sign and four or more digits is likely to be a check number field. 
<br/>&gt; &gt; 
<br/>&gt; &gt;I am doing a lot of tests for each field and I don’t think the switch is a good fit. 
<br/>&gt; &gt; 
<br/>&gt; &gt;Sincerely, 
<br/>&gt; &gt; 
<br/>&gt; &gt;Joe.
<br/>&gt; -- 
<br/>&gt; Louis LaBrunda 
<br/>&gt; Keystone Software Corp. 
<br/>&gt; SkypeMe callto://PhotonDemon 
<br/>&gt; 
<br/>&gt; _______________________________________________ 
<br/>&gt; Beginners mailing list 
<br/>&gt; [hidden email] 
<br/>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; 
<br/>&gt; If you reply to this email, your message will be added to the discussion below:
<br/>&gt; <a href="http://forum.world.st/next-or-break-in-a-loop-tp4894095p4894128.html" target="_top" rel="nofollow" link="external">http://forum.world.st/next-or-break-in-a-loop-tp4894095p4894128.html</a><br/>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4894218&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>&gt; To unsubscribe from Squeak - Beginners, click here.
<br/>&gt; NAML
</div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/next-or-break-in-a-loop-tp4894095p4894218.html">Re: next or break in a loop</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>