Skip to content

Control Flow

17 built-in function(s) in this category.

  • $Epilog — $Epilog (Stable)
  • $Post — $Post (Stable)
  • $Pre — $Pre (Stable)
  • $PrePrint — $PrePrint (Stable)
  • $PreRead — $PreRead (Stable)
  • $RecursionLimit — $RecursionLimit (Stable)
  • Boole — Boole[expr] (Stable)
  • ConditionalExpression — ConditionalExpression[expr, cond] (Stable)
  • Do — Do[expr, n] evaluates expr n times. (Stable)
  • For — For[start, test, incr, body] executes start, then repeatedly evaluates body and incr until test fails to give True. (Stable)
  • If — If[cond, t] (Stable)
  • Piecewise — Piecewise[{{val_1, cond_1}, {val_2, cond_2}, ...}] (Stable)
  • Return — Return[expr] (Stable)
  • Switch — Switch[expr, form_1, value_1, form_2, value_2, ...] (Stable)
  • TrueQ — TrueQ[expr] yields True if expr is True, and False otherwise. (Stable)
  • Which — Which[test1, value1, test2, value2, ...] (Stable)
  • While — While[test, body] evaluates test, then body, repeatedly, until test first fails to give True. (Stable)