Programming Logic

So you've read through the Introduction to Programming, and you understand the basics of programming, but before you jump into the depths of learning various language syntax rules, there are even more basics that apply to every programming and scripting language. If program code is nothing more than a set of instructions, how does the computer make decisions? A large portion of computer code is contained within logical or conditional statements, and are only executed when certain situations arise.

## Prerequisites

[edit | edit source]

### Required

[edit | edit source]

* Introduction to Programming

### Recommended

[edit | edit source]

* Introduction to Math for computer programming

## Focus

[edit | edit source]

This course is intended to thoroughly teach the principles of programming logic and procedural coding while reinforcing lessons learned in Introduction to Programming while avoiding the complications of any particular syntax. For this reason, the lessons will contain only pseudocode with occasional mathematical calculations.

### Planned Topics

[edit | edit source]

if - then  | if - then - else  | equal to  | greater than  | case

|
|
|
|

less than  | not  | and  | or
nor  | xor  | goto  | break
loop  | while  | until  | for - each - next

## Lessons

[edit | edit source]

* Key Terms
* Variables
* Conditionals and Logic
* Looping
* Code Organization Techniques

## See Also

[edit | edit source]

* Programming Fundamentals
* Computer Programming
* PLC \- programmable logic controller

## References

[edit | edit source]

* TutorialsByte: Programming logic and techniques