In BER, variables hold data you want to store and use later. BER supports strings, numbers, booleans, and a special missing
value.
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.
"text"
— String (must be in quotes)123
— Number (integers and decimals)enabled
/ disabled
/ unable
— Boolean-like status valuesmissing
— Represents null or no valueboard:(name)
board:(age)
board:(active)
board:(score)
This prints the values stored in the variables using board:
.