From 411a9000890dd6006939d1bbe78b9009f0173017 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Thu, 30 May 2024 18:33:46 -0600 Subject: [PATCH] vault backup: 2024-05-30 18:33:46 --- IT/Scripting.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 | | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |