BER Programming Language - Basic Syntax & Commands

Welcome to the first step in learning BER! This page covers the essential syntax and commands you need to get started.

Printing Output

board:("Hello, BER!")

Explanation: Use board: to print text to the screen. This is BER’s way to show output.

Comments

/c This is a comment in BER e\

Explanation: Comments start with /c and end with e\. Use comments to explain your code.

Basic Commands

create "file".exe
duplicate "file".exe
rename "file"(1).exe
remove "file".exe
pause "file".exe
play "file".exe
restart "file".exe
load "file".exe
end

Explanation: These commands manage files or scripts easily: create, copy, rename, remove, pause, play, restart, and load.

Tip: Always close your script blocks with end to avoid errors.

Functions (Basic)

function hello.world
  board:("Hello from function!")
end

hello.world run

Explanation: Define functions with function name. Call them with name run. No parentheses needed.