if then else statement

if then else statement The most basic conditional construct in a programming language, allowing selection between two alternatives, dependent on the truth or falsity of a given condition. Most languages also provide an if … then construct to allow conditional execution of a single statement or group of statements. Primitive languages, such as Basic in its original form, restrict the facility to a conditional transfer of control, e.g.

“IF A = 0 THEN 330”

which is reminiscent of the conditional jump provided in the order code of every CPU. See also conditional.

Cite this article
Pick a style below, and copy the text for your bibliography.

  • MLA
  • Chicago
  • APA

JOHN DAINTITH. "if then else statement." A Dictionary of Computing. 2004. Encyclopedia.com. 27 May. 2012 <http://www.encyclopedia.com>.

JOHN DAINTITH. "if then else statement." A Dictionary of Computing. 2004. Encyclopedia.com. (May 27, 2012). http://www.encyclopedia.com/doc/1O11-ifthenelsestatement.html

JOHN DAINTITH. "if then else statement." A Dictionary of Computing. 2004. Retrieved May 27, 2012 from Encyclopedia.com: http://www.encyclopedia.com/doc/1O11-ifthenelsestatement.html

Learn more about citation styles

Find thousands of answers for hundreds of subjects at Answers Encyclopedia .

All answers verified by trusted sources at Encyclopedia.com

Try Answers Encyclopedia now!

For students and teachers!

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including:

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including: