philmasterplus
Active member
I recently learned that some built-in ASH functions behave like assertions when their return values are not used:
I skimmed
Code:
// Abort the script if it fails to retrieve the item
retrieve_item(1, $item[ mae west ]);
// Don't abort the script even if it fails to retrieve the item
boolean result = retrieve_item(1, $item[ mae west ]);
I skimmed
RuntimeLibrary.java
and updated the wiki page with a list of functions that return continueValue()
. Is this list correct, or are there any other functions that behave like assertions?