Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to end a running script inside a "if" statement

Hello,

I have a prg.sage script inside which a conditional statement takes place. I would like the script to stop running if the condition is true after having called load("prg.sage") command, and still be in the sage environment. Pure python would allow me to use sys.exit()... What is the best way to do it the "sage way"?