# 
# Copyright(C) 1996, 1997 Network Flight Recorder, Inc. 
# All rights reserved. 
#       
# Use and distribution of this software and its source code 
# are governed by the terms and conditions of the 
# Network Flight Recorder Software License ("LICENSE.TXT") 
# 
 

#
# Tests the foreach syntax.
#
#

list = [ "a", 1, 2, 3, "bcd" ];


func test {
    echo ( "list:", list, " includes members : " );
    some = 0;

    foreach $a inside (list) {
	if (some) {
	    echo( " .and. " );
	}
	echo( $a );
	some = 1;
    }
    echo( "\nanymore?\n" );
}

test();
