Basic syntax

Basic syntax

Basic syntax

Function

This page introduces the most basic writing rules of BT code. BT adopts an intuitive syntax similar to JS, while retaining the language mechanism of "expressions have return values".

Statement

usually writes one statement per line, and can also be separated by semicolons.

Code block

Curly braces {} wrap multi-line statements. The value of the code block is determined by the last statement.

Literal

Chained call

Objects, arrays, strings, HTTP clients and other capabilities support chained calls.