1 Reply Latest reply on Aug 26, 2006 6:35 AM by Lukewig

    exit from the inner loop as well from upper loop

    farhanakhan Level 1
      hi
      i want to stop the loop when the condition true but when the conditin true then upper loop execute again

      when the condition true then i want when inner loop exit then upper loop also exit but is not doing what i do

      is the program which i mad
      ------------------------------------------------
      user = baRegValueList("HARDWARE\DEVICEMAP\VIDEO","HKEY_LOCAL_MACHINE")

      put user
      len=user.count

      repeat with t=0 to len-1
      reg_value=string("\Device\Video"&t)
      put "reg_value=========="&reg_value

      repeat with i =1 to len
      put "user =========="&user
      if reg_value=user then
      put "condition true "
      exit repeat ----------from this command loop exit from only inner lopp not from upper loop
      end if
      end repeat
      end repeat
      ------------------------------------------------

      tell me what i d o