Conditional commands do not work inside of functions. Here's how to reproduce:
- Create a function foo:bar with the following content:
The [c=1] is important here, see
- Create a second function foo:bar2 with the following content:
- Run /reload.
- Run /function foo:bar
- Notice that the only thing written into the chat is foo:bar succeeded and the success message telling you that both commands have been run