MazamaScience/MazamaCoreUtils

Create general `stopIfNull` and `setIfNull` functions

Closed this issue · 0 comments

In our web service apps, we do a lot of checking if variables exist, failing if variables don't exist, or setting a variable to some default value if it doesn't already exist. There is a standard code template for doing this, but it would save typing and increase clarity if we wrapped these templates in a few custom functions.