Skip to content

Expression Statements

Expression statements evaluate an expression and discard any results. Therefore, they are only useful if the expression has side effects, for example if it writes to a file. The following snippet demonstrates this by calling the toCsvFile function that writes a Table to a CSV file:

Table({"ids": [1, 2, 3]}).toCsvFile("example.csv");

An expression statement has the following syntactic elements:

  • The expression to evaluate.
  • A semicolon at the end.