Documentation
MicroDSL » Devlog
MicroDSL Documentation v1.0
Commands
Out/In
echo
Outputs text in console
echo “Hello World!”
echo_out
Outputs value of variable in console
echo_out x
input
Allows user to input value for variable
input x
Variables
int
Sets integer variable
int x 1
str
Sets string variable
str x string
arr
Sets array
arr x 1 2 3 4
inc
Increases value of variable
inc x
dec
Decreases value of variable
dec x
rnd
Sets random value for variable
rnd x
Math
add
Addition of variables
add x y
sub
Substraction of variables
sub x y
mul
Multiplication of variables
mul x y
div
Division of variables
div x y
rem
Calculates remainder of variables
rem x y
exp
Raises first variable to power of second
exp x y
Loops
for
Outputs value of variable selected number of times
for 0 3 x
Conditional branching
if
Outputs selected text when condition is true
if x 4 “x is 4”
Other
ver
Outputs current version
html
Allows user to render html in popup window
html
html
base64
Converts string to base64
Leave a comment
Log in with itch.io to leave a comment.