If-then functions are logic functions that allow for conditional statements. This type of logic means a specific action or outcome will occur if a particular condition is met. If-then functions are commonly used in programming and computer science to control a program's flow or make decisions based on certain conditions. They are an essential tool for creating efficient and effective algorithms. If-then functions can also be used to improve operational and energy efficiency in building automation.