Hi,
thanks for your pdf, it helped a lot.
I think the problem can be related outside of this function, because the variable doesn't have | char, or doesn't have anything after | character like was expected.
Please send me a message, I would like to check this for you for just $20, I'm hopping get future projects with you.
Thank you