Exception handling

The Pixie
Is there any way to do this in Quest? Not been able to find anything.

Alex
Nope, but why do you need to?

The Pixie
I want to have a Text Processor functionality that will call a function, and I want to be able to deal with the function not existing.

try {
return (eval (function + "()"))
}
catch {
return ("[Oops, function does not exist]")
}

Alex
Is there any benefit to having the text processor calling an arbitrary function? You can't pass any parameters in your approach. Why not just concatenate the function result and call it in the usual way?

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums