Difference between revisions of "If then else"
Jump to navigation
Jump to search
m (cat) |
(Visual Basic example) |
||
| Line 1: | Line 1: | ||
The '''if then else''' logic of computer programming is the essential aspect which elevated the modern computer from earlier automatic machines such as the [[Jacquard loom]]. | The '''if then else''' logic of computer programming is the essential aspect which elevated the modern computer from earlier automatic machines such as the [[Jacquard loom]]. | ||
| + | |||
| + | Visual Basic example: | ||
| + | if x < 4 then | ||
| + | y = z + x | ||
| + | else | ||
| + | y = z | ||
| + | end if | ||
| + | |||
| + | |||
[[Category:Computer Programming]] | [[Category:Computer Programming]] | ||
Revision as of 15:18, December 16, 2008
The if then else logic of computer programming is the essential aspect which elevated the modern computer from earlier automatic machines such as the Jacquard loom.
Visual Basic example:
if x < 4 then y = z + x else y = z end if