Each of your “if” statements are being closed at the end of the script, but it looks like your foreach
loops are all being closed without anything happening inside them. There is something wrong with your nesting.
1 Like