Syntax Lookup

Enter some language construct you want to know more about.
This is the if / else control flow.

Use if / else expressions to express a value through a true / false condition.

Example

ReScriptJS Output
let user = "Anna"

let greeting = if user === "Anna" {
  "Hi Anna!"
} else {
  "Hi unknown!"
}

References