Could someone please give me a brief explanation on for loops please Thanks Dale -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 26 March 2010 13:44, woodsy0130 <woodsy0130-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Could someone please give me a brief explanation on for loops pleaseGoogle for ruby loops will give you loads of data. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
for i in 1..8 do puts i end The above loop will result in the following output: 1 2 3 4 5 6 7 8 I don''t think there''s anything else to explain here. On 26 March 2010 14:44, woodsy0130 <woodsy0130-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Could someone please give me a brief explanation on for loops please-- Viele Grüße / Best regards, Björn Wilmsmann -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.