Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Rebol Programming/switch

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

USAGE: SWITCH value cases /default case /all DESCRIPTION: Selects a choice and evaluates the block that follows it. SWITCH is a native value. ARGUMENTS value -- Value to search for. (Type: any) cases -- Block of cases to search. (Type: block) REFINEMENTS /default case -- Default case if no others are found. (Type: any) /all -- Evaluates all matches (not just first one). SOURCE CODE switch: native[ {Selects a choice and evaluates the block that follows it.} value "Value to search for." cases [block!] "Block of cases to search." /default case "Default case if no others are found." /all "Evaluates all matches (not just first one)." ]