Skip to content
Sign upLog in
← Back to Community

Syntax??

Profile icon
DeadWither

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

Comments
hotnewtop
Profile icon
DeadWither

It is python, the language

Profile icon
themining72

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

Profile icon
VulcanWM

In what language?

Profile icon
themining72

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

Profile icon
DeadWither

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

Profile icon
DeadWither

@themining72
Right you are