Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 618 Bytes

File metadata and controls

13 lines (9 loc) · 618 Bytes

Control Expressions

In Mint, control structures are expressions that return a value, so they are called control expressions.

Here are the control expressions:

  • if...else - basic, 2 way conditional expression
  • case - extended, N-way conditional expression
  • for - iteration over Array(a) Set(a) and Map(a,b)
  • try - executes a sequence of synchronous expressions, including failure handling
  • sequence - executes asynchronous expressions in sequence, including failure handling
  • parallel - executes asynchronous expressions in parallel, including failure handling