I have this piece of code running from EnumOUs():
Code:

....
$i=''
$objOU = GetObject($LDAP)
$aFilter[0] = $Filter
$objOU.Filter = $aFilter
for each $item in $objOU
if $item.class = $Filter
$i = $LDAP
endif
next
....



I would like to break out of the FOR EACH as soon as $i gets a value, but stay in the function.
_________________________
How to ask questions the smart way <-----------> Before you ask