I have a Big Script where i want to ignore a function call if it has been called already.
Am having a flag which is set to determine this now. But how do i do this without needing to have a flag or count for this.
Thanks!
You can make the function re-write itself, essentially becoming a noop after the first invocation:
function TestFunction
{
'Do Stuff'
function Script:TestFunction { Return }
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With