Ask coding questions

← Back to all posts
Syntax??
DeadWither

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

Comments
hotnewtop
DeadWither

It is python, the language

themining72

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

VulcanWM

In what language?

themining72

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

DeadWither

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

DeadWither

@themining72 Right you are