Would you mind posting and formatting your code so we can look through it to find the problem?
You can format code by selecting it all while in the post editor, and pressing
Ctrl/Cmd + K, or by adding a new line and three backticks (
`) before and after your code, like this:
<code> will show up properly here