ironpython - Skip / break Iron python program in middle -


is there alternate 'goto' command in ironpython? tried using sys.exit(). gives system exit exception.

are trying escape exceptions or something? why don't encapsulate relevant script in "while-try" loop? if you're trying escape on conditions, creative use of if clauses , while loops can still solution.

something = true while(something):     try:         doing things     except e:         print e         = false 

in addition, break can break out of loop in middle of flow. it's not graceful, gets job done long handle infinite loops.

while(true):     things     if(condition):         break     else:          print "condition not true"     more things     break 

Comments