Ask coding questions

← Back to all posts
Stopping program?
Roctavius (0)

I code in C# and want to stop the program from running anymore after an ending of the game is found. Can someone give me the script or does that not exist in Repl?

Comments
hotnewtop
[deleted]

The functionreturn; should work

[deleted]

Make sure to check the comment if it works for you.

Roctavius (0)

@hovr it worked, thanks!