# PRE: foreach foreach-break
#

#
# Adding attribute during request and immediately returning should still work
#
Filter-Id := { "1", "2", "3", "4", "5" }

foreach Filter-Id {
	if ("%{Foreach-Variable-0}" == "3") {
		success

		#
		#  We need this because the "return" below
		#  will prevent the "pap" module from being run
		#  in the "authorize" section.
		#
		control.Auth-Type := ::PAP

		#
		#  Stop processing "authorize", and go to the next section.
		#
		return
	}

	if ("%{Foreach-Variable-0}" == "4") {
		test_fail
	}
}
