-
-
Notifications
You must be signed in to change notification settings - Fork 1
Variables
variable is a named memory location which stores data. Melon has 3 data types they are string
, hex
, bool
Step: 1: Open Melon Language CLI and create a new project
Step: 2 let's say we want to create a hexadecimal variable, we should do:
hex Test = 3E ? Locked = false
we can use the same for string
and bool
. the hex
stands for hexadecimal and then the name of your variable then we type =
to assign a value to the variable. declaration is not possible in melon. then we have Locked
which makes the variable editable or not if it was Locked = true
the variable is a constant if not it's dynamic
Good Practice : Always delete the variable at the end of the code
delete <varName>
or
delete <var1>, <var1>
Copyright (C) S Pradosh 2023 - Closed Source Project
Architecture and OS that Melon Supports
Setup Melon Language for Windows Terminal
Setup Melon Language for VSCode Terminal
Setup Environment CLI for Melon Language on Windows
Copy Paste: [](https://github.com/pradosh-arduino/Melon-Language/)