?Continued Action?

How would you go about using a function to do a continous action? I tried it myself but couldn’t get it working. For example, if something==true; then it will continously do prevFrame(); action, or anything like this. I tried a if statement, and used a function command, but no success so far. Still trying, or will still be trying after my next class.