• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Template listener: do not use "return"

cclaerhout

Well-known member
#1
This mistake will seem obvious to most of you (see here :coffee::oops: ) but better write it here.

For those who wouldn't have understood: a "return" in a template listener will prevent this hook to be available once the return is done. Instead use a "break" command in a "switch" conditional.