I have been searching the forum and scripting index for a way to do this but have not found anything to accomplish what I am trying to do. I am looking for something that has similar functionality to Python's "Raise" function. Or essentially the same functionality as the Try Throw statements but without a JSL exception being raised.
For example I am writing a function that requires the user to enter a date in the form of a string. In order to prevent errors I want to check the input before using it in the function.
Example Function = Function({start_date,end_date},
chk1 = Is String(start_date);
If(chk1 == 0, //Raise some error here);
);I think I could accomplish what I want with a Show("Error message") and Break() sequence but I am wondering if there is any native JSL methods to accomplish this task.