-
Notifications
You must be signed in to change notification settings - Fork 0
Variables
Mel Florance edited this page Jul 23, 2020
·
8 revisions
Bird Lang supports variables to store numbers or boolean values.
You can assign variables with the var keyword:
Example:
> var a = 2
2You can access variables just by refering to its identifier:
Example:
> a + 3
5Like in algebra, you can use variables to do various types of operations, like using them with expressions, comparison etc...
Example:
> var a = 2
2> var b = 4
4> var c = a * b
8