Jump to content

Conditional (computer programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 200.95.56.57 (talk) at 01:18, 10 February 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Conditional Statement is a term used on computer science defining a vital structure used on a programming language. A conditional Statement is a request to the computer to make a choice using a given data comparison. The most common is the If Then. It works this way. When the computer finds an If (reserved word) it waits for a data comparison, for example, x = 0 and evaluates the conditional, if is True, the code following the Then (another reserved word) shall be executed, if not, then the execution shall continue from the final of the Statement. According with the language, the If can or not use the Then, use brackets, use another clause called Else, even an ElseIf. There are many other Conditional Statements in the programming languages, however, all of them follow these principles.