I want to check for a condition and exit my function or program if the condition is not met. In other programming languages I would do this with return or exit statements. But this does not seem to work in skill.
Here is an example:defun( foobar()
unless(axlGetVariable("ALLEGRO_BRD2ODB") axlUIConfirm("BRD2ODB not found. Please install!") exit() ; is not working, what should i use here to exit function? ) ;do some other stuff if condition is ok
if the skill window is open this will close on the exit command.
use the return statement
If you need return multiple levels you will may want to use err/errset which is basically a catch/throw let mechanism. You can read about this in the Skill Language User Guide (look for the section Using err and errset Together.