Skip to content

Export command

Alvin Cheng edited this page Jan 9, 2023 · 1 revision

Description

Welcome to the export command documentation, the export command can be used to export a variable so it can be used in other files. The export command will add an export flag to indicate it can be exported to another file.

Why import&export code??

Programmers sometimes need to use a particular function multiple times in a program. In an effort to make the program cleaner, programmers can put functions and data in other files for easy navigation. And to use them we need to use export&import.

Example

$VARIABLE = "<DATA>";
export $VARIABLE;

Don't how to use variables?? Check this out!

Clone this wiki locally