BDScript 2 is the default in-app scripting language (as of October 2021). It has been created with intention of enhancing its capabilities and fixing some of the problems previous versions had.
The first edition of BDScript has one big issue, commands like
$sum[$sum[3;2];1] didn't work. The reason it didn't work is because BDScript has a pre-defined order for executing functions.
In order to fix the issue, a new BDScript edition was developed called BDScript Unstable. It executes function in a command from bottom to top and from right to left.
It fixes the issue, but the new edition has its quirks which could be problematic for some commands. That's where BDScript 2 comes in. This edition executes commands from top to bottom and from left to right (basically, just the way you read most of the books).
Besides that, BDScript 2 has additional features like
$catch and more.
Evaluates the provided BDScript code. Read this for more information.
This works in a very similar way to the equivalents available in other programming languages.
You can read more about it here.
Runs functions asynchronously. Read Async Guide for more information.
Read If Statements Guide for more information.
Creates a temporary variable. Read this for more information.
It stops the command execution. It may seem like a useless function but it can come in handy with
Executes functions with turned off optimizations. Read this for more information.