Skip to main content

expr

Laurence MorganLess than 1 minute

expr

Expressions: mathematical, string comparisons, logical operators

Description

Usage

expr: expression -> `<stdout>`

Examples

Order of operations:

» 3 * (3 + 1)
12

JSON array:

» %[apples oranges grapes]
[
    "apples",
    "oranges",
    "grapes"
]

See Also

  • = (arithmetic evaluation): Evaluate a mathematical function (deprecated)
  • let: Evaluate a mathematical function and assign to variable (deprecated)
  • set: Define a local variable and set it's value
Last update:
Contributors: Olivier Refalo