Originally Posted by semlar
You need to add something like if not guid or guid == '' then return end to the top of the _RelevantPet function to just exit if there's no guid.
The error is being caused by the guid being an empty string which is one of the only things I didn't make an exception for in my example.
Actually, hang on I'll write something better because that will make it lose some of its functionality.
|
wouldn't it cause the function to not work at all if we completely exit when there is no GUID ?
wouldn't setting something like NONE (as the example above) shown would work better ?