First question
- To: mathgroup at smc.vnet.net
- Subject: [mg52091] First question
- From: dto_mba at skynet.be
- Date: Wed, 10 Nov 2004 04:45:44 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
How to exit directly and immediately a module from inside a loop with a certain value ? Return seems not to work. Example: lmaa := Module[ {}, Do[ If[i > 3, Return[{"from inside"}]], {i, 1, 5} ]; Return[{"not from inside"}] ] lmaa {not from inside} Best Gilbert Gosseyn
- Follow-Ups:
- Re: First question
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: First question
- From: DrBob <drbob@bigfoot.com>
- Re: First question