On Saturday, August 2, 2014 4:48:42 AM UTC-5, sinbad wrote: ... a function with a double loop... On Sunday, August 3, 2014 5:44:10 PM UTC+12, Ben Fritz wrote: > > What doesn't work about it? You only showed output for ma=1. ...
sinbad showed that because that's all he got. mb is set outside the first loop, it reaches 20 once and then stays that way. The let mb = 1 needs to be inside the ma loop. A good idea to define and set a variable as close as possible to its use. Regards, John Little -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
