I am curious if someone can help clarify how functions work.
I have a function here where the opacity is decreased with a lerp. It does not work. It seems like it only runs once when called.
Of course if I move out the condition string condition "Foo" outside of the function it works fine. But would it not be best practice to encapsulate all the conditions inside of the function it pertains too?
Thank you in advance.