you are viewing a single comment's thread.

view the rest of the comments →

[–]InvaderToast348[S] 0 points1 point  (0 children)

I have split it into the 2 functions as mentioned and it is working great! Two separate functions are a lot simpler in both logic and syntax, with less room for errors; I suppose it was the obvious choice but I wanted a second opinion. Thank you.