Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Terminate for loop in console
#1
I'm trying to learn python scripting. I'm working in the Python-fu console

How do I terminate a loop?

example:
#############################
list = gimp.image_list()

for x in list:
      pdb.gimp_image_delete(x)
list
#############################

No matter what I try, the console tries to include the next line in the loop
Reply


Messages In This Thread
Terminate for loop in console - by pwiecek56 - 07-04-2023, 03:55 PM
RE: Terminate for loop in console - by PixLab - 07-05-2023, 02:24 AM
RE: Terminate for loop in console - by pwiecek56 - 07-05-2023, 06:59 AM
RE: Terminate for loop in console - by Ofnuts - 07-05-2023, 07:00 PM
RE: Terminate for loop in console - by Dogarithm - 12-16-2023, 01:05 AM
RE: Terminate for loop in console - by Ofnuts - 12-16-2023, 09:40 AM
RE: Terminate for loop in console - by Ofnuts - 07-05-2023, 07:04 AM
RE: Terminate for loop in console - by pwiecek56 - 07-05-2023, 06:17 PM

Forum Jump: