(See also this comment on Reddit by @unknown)
Conditional commands do not work inside of functions. Here's how to reproduce:
Create a function
foo:bar
with the following content:say foo:bar succeeded function foo:bar2 if @e[c=1]
The
[c=1]
is important here, see MC-117661.Create a second function
foo:bar2
with the following content:say foo:bar2 succeeded
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
yeah, this is happening to me too