0

Out of curiosity, what programming languages do not have an "If" statement?

First language that somehow operates completely without an If Then control structure gets the answer.

-1 given to languages no one has actually heard of (eg: "My friend made a programming language in college called 'EwoK' that used a 'when' statement instead...")

Toby
  • 647
  • 4
  • 14
  • no one has actually heard of is unprecice.. – BvuRVKyUVlViVIc7 Dec 08 '12 at 23:14
  • I think that the "Shakespeare programming language" does not have such a thing - but then it's not a "real" language either: https://en.wikipedia.org/wiki/Shakespeare_%28programming_language%29 –  Dec 08 '12 at 23:15
  • See http://stackoverflow.com/questions/4684716/language-without-ifs – Golo Roden Dec 08 '12 at 23:16
  • 1
    @a_horse_with_no_name - "2b OR NOT 2b" syntax error, invalid binary constant "2b". – Will A Dec 08 '12 at 23:17
  • Does that mean we can give you a -1 for posting a duplicate of http://stackoverflow.com/questions/4684716/language-without-ifs ? (It would only be fair.) Not downvoting, just asking. – Ken White Dec 08 '12 at 23:18

1 Answers1

1

Most assembly languages do not have an if statement, instead, they branch or jump to another location based on the result of a logical comparison or processor flag check.

Will A
  • 24,780
  • 5
  • 50
  • 61