So I'm probably brain farting after years of not programming. But this seems like it's relatively unique to Lua. When checking a function for a value/true vs nil/false, is there a shorthand to prevent it from throwing Lua errors? Below is an example and not so much broken code:
NumGroup = GetNumPartyMembers()
NumGroup = GetNumRaidMembers()
It always throws "attempt to call global 'IsInParty' (a nil value)" and stops the entire program. Ya, no kidding it's nil... that's literally what I'm checking for. Any insight would be great because this has been plaguing me lol.
Edit: Irony to note, this is almost identical to the example in the wiki for IsInParty or IsInRaid. So i'm assuming it's relatively new for them to disallow nil returns in functions literally intended to return nil most of the time.