Control flow: Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Altered template type. | Use this bot. Report bugs. | Suggested by Dominic3203 | Category:Articles with example C code | #UCB_Category 140/199
If-then-(else) statements: Arithmetic IF was deleted from the Fortran Standard as of Fortran 2018.
Line 156:
|}
Less common variations include:
* Some languages, such as [[Fortran]], have a ''three-way'' or ''[[arithmetic if]]'', testing whether a numeric value is positivenegative, negativezero, or zeropositive. (In Fortran, this statement was deemed obsolescent in Fortran-90, and deleted as of Fortran 2018.)
*Some languages have a [[Functional programming|functional]] form of an <code>if</code> statement, for instance [[Lisp (programming language)|Lisp's]] <code>cond</code>.
*Some languages have an [[Operator (programming)|operator]] form of an <code>if</code> statement, such as C's [[ternary operator]].