diff --git a/IT/Scripting.md b/IT/Scripting.md index ac60999..2b245fc 100644 --- a/IT/Scripting.md +++ b/IT/Scripting.md @@ -114,6 +114,18 @@ function_name () { } ``` +To execute a function, simply include the name of the function. To execute the above function: +```bash +function_name +``` + +To declare a local variable in a function, prefix the declaration with the `local` keyword. +```bash +function_name () { + +} +``` + ## Commands | Command | Description | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |