Ask coding questions

← Back to all posts
Syntax??
DeadWither (1)

Hello,
Is there a syntax for ending the script?
If not, is there a syntax for restart?

Comments
hotnewtop
DeadWither (1)

It is python, the language

themining72 (49)

To automatically restart the script, you could encase your entire script in a while True: loop. To end/exit the script, exit() works.

themining72 (49)

@VulcanWM I think he's talking about Python as his projects are Python.

DeadWither (1)

@VulcanWM I figured it.
It is :
import sys
sys.exit()