BER Programming Language - Variables & Data Types

In BER, variables hold data you want to store and use later. BER supports strings, numbers, booleans, and a special missing value.

Declaring Variables

this name is "Bernardo"
this age is 11
this active is enabled
this score is missing

Explanation: Use this <variable> is <value> to declare variables. Values can be text in quotes, numbers, or boolean-like keywords.

Data Types

Using Variables

board:(name)
board:(age)
board:(active)
board:(score)

This prints the values stored in the variables using board:.

Tip: Variable names should be simple and meaningful. Avoid spaces or special characters.