Jump to content

If-then-else

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Rm dash r (talk | contribs) at 01:53, 12 December 2005. 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)

A programming construct used to branch program logic based on a conditional. For example consider the folowing psuedo code:

 if (condition A) then
    { do something }
 else
    { do something different }