Control logic


In programming, the control logic is the set of logical operations and control structures that determine the order of execution of the instructions of a program.

In the MVC Model View Controller model the data, the user interface and the control logic are the three levels in which an application is decomposed.

Thus, in a web application with dynamic sheets that query a database and display it using a browser, the user interface is the HTML rendering code of the page, and corresponds to the view. The data in a database correspond to the Model, and the control logic is the set of instructions that must be executed to access the data sought. The control logic can be written in different languages ​​and run on both the client and server or both at the same time. In the MVC paradigm the control logic corresponds to the Controller.

wiki