-
Notifications
You must be signed in to change notification settings - Fork 0
Import command
Alvin Cheng edited this page Jan 9, 2023
·
1 revision
This is the import command, this command will import a variable, array or function from another file that is exported by the export command. The command will accept an argument of the file to import from. Please note that all the variables in the export list are available.
Please note that this command is accessing your file system so the OS may ask for your permission(MacOS especially). Please grant permission to the executable to have access to your files, or else this command will fail.
main.chat:
import "./file.chat";
# $VARIABLE can now be used here!
file.chat:
$VARIABLE = "<VALUE>";
export $VARIABLE;
- Home
- Setup
- Print command
- Variables and set command
- Append command
- Array command
- Call command
- Clear command
- Compare command
- Concat command
- Create command
- Delay command
- Delete command
- Disable command
- Enable command
- Exit command
- Export command
- Fetch command
- Functions and the function command
- Get command
- If statements
- Import command
- Length command
- Load string command
- Object command
- POST command
- Prompt command
- Read command
- Remove command
- Repeat command
- Shell command
- Write command
- Calculate command
- Sin cos and tan commands
- PI command
- Rand command
- Round command
- Sqrt command
- Delete message command
- Get messages command
- Follow user command
- Get public rooms command
- Get rooms command
- Join room command
- Login command
- On message command
- Remove room command
- Room exists command
- Send message command
- Signout command
- Final words&thoughts