Often, I'll have code like this:
If [ IsEmpty ( $_var ) ]
We already have Exit Loop If. I'd welcome Exit Script If.
Exit Script If [ IsEmpty ( $_var ) ]
This would help to better do error handling.
e.g. use a let statement to check error state, write error message to log and return 1 or 0 as result.
Excellent idea Chivalry.
Keeps consistency with Exit Loop If
Reduces script length and complexity.
Like it alot - sometimes the smallest ideas have the greatest impact.
Retrieving data ...