Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sys exit out of loop

#sys.argv is after the file name
#sys.exit exits program if condition isn't met in this case

if len(sys.argv) != 2:
	sys.exit
 
PREVIOUS NEXT
Tagged: #sys #exit #loop
ADD COMMENT
Topic
Name
4+7 =