Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
6 user(s) are online (5 user(s) are browsing encyclopedia)

Members: 0
Guests: 6

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Conditional statement

A conditional statement, in computer science, is a vital part of a programming language. It is a request to the computer to make an execution (computers) choice based on a given condition.

The most common is the If-Then clause:

If (condition) Then (statements) Else (statements) End If

It works this way - when the computer finds an If (a reserved word), it waits for a data comparison, for example, x = 0 and evaluates the condition. If the condition is true , the statement block following the Then (another reserved word) shall be executed, otherwise the execution shall continue in the following statement block.

Depending on the language, the If may use Then , brackets, and another clause called Else or ElseIf .

There are many other conditional statements in programming languages, however, all of them follow these principles. Other conditional statements include switch statements, case statements and statements with guard (computing)s.

= See also =

  • Conditional branch for a theoretical view
  • Pattern matching for another way to make execution choices
  • Logical conditional