Hello James,
thanks for your reply.
It’s not about debugging, the code snippet already works. I just don’t get how to achieve the output I mentioned as the aim – it’s more a styling problem with the separators. I googled a lot but for some reason, I don’t get the hang of it. I was hoping for some input from an experienced coder, I’m not even sure if my approach with foreach makes sense here.