I saw a project saying that the "if" statement slows down a project, so I made this project to test it. After looking at the results, "if" doesn't slow down your project.
note: I'm not very good at optimizing projects, so this may not be the best way to do this.