/syntax

Sentient Lang.

Assignment

An assignment is used to assign an expression to a variable. Here is an example:

a = 2 + 2;

You do not need to declare variables first. Their type will be inferred from the expression being assigned. You can assign multiple expressions to variables at the same time:

a, b, c = 10, true, [123];

It is possible to combine assignment with arithmetic and boolean operators:

total += 1;