[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Breaking out of a foreach loop
From: |
Noel Yap |
Subject: |
Re: Breaking out of a foreach loop |
Date: |
Fri, 27 Feb 2004 18:07:01 -0500 |
Think "functional programming language" rather than "procedural programming
language".
What exactly do you want to do? Maybe there's another way to do it.
Noel
> "Bhatt, Milan C" wrote:
>
> Hi Guys,
>
> I just had a quick question on whether there was any way to break out of a
> foreach loop when a certain condition has been reached.
>
> I'd like to do the following:
>
> $(foreach dir, $(DIRS), \
> $(if <condition>, <statement>; \
> <break_out_of_loop>) )
>
> I wasn't able to find anything in the documentation that provided this kind
> of functionality.
>
> Thanks,
> Milan
>
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.