Functions Index :: T :: Throw

[<< up one level]

Module:

base :: core

Definition:

Throw(string "error_msg")

Description:

Throws an error (causing immediate termination of script execution), optionally showing a custom error message.

Examples:

b = ...something...

# the line below will stop script if b > 10

t = b > 10 ? Throw("this is an error") : 5

 

[<< top]