Control flow: Difference between revisions

Content deleted Content added
Tags: nowiki added Visual edit
Line 95:
=== If-then-(else) statements ===
{{main article|Conditional (computer programming)}}
Conditional expressions and conditional constructs are features of a [[programming language]] whichthat perform different computations or actions depending on whether a programmer-specified [[booleanBoolean datatypedata type|booleanBoolean]] ''condition'' evaluates to true or false.
* <code>IF..GOTO</code>. A form found in unstructured languages, mimicking a typical machine code instruction, would jump to (GOTO) a label or line number when the condition was met.
* <code>IF..THEN..(ENDIF)</code>. Rather than being restricted to a jump, any simple statement, or nested block, could follow the THEN key keyword. This a structured form.