From c6251e3fb1404ee9fc0de8ec8fc058ba1336f67d Mon Sep 17 00:00:00 2001 From: Artemy Date: Mon, 8 Aug 2022 18:50:02 +0300 Subject: [PATCH] doc: delete variable --- ROADMAP.md | 10 +++++++--- doc/main.md | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ROADMAP.md b/ROADMAP.md index c335bab..b7b53a1 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -2,8 +2,8 @@ - [ ] Functions - [ ] imports -- [ ] scopes of visibility -- [ ] types conversion +- [x] scopes of visibility + - [ ] methods for arrays - [ ] methods for strings - [ ] methods for objects @@ -11,6 +11,10 @@ - [x] yaml support? - [ ] command execution function - [ ] function for random -- [ ] delete variable +- [x] delete variable +- [ ] types conversion +- [ ] checking variable type +- [ ] checking for the existence of a variable +- [ ] create scopes without if, else, loop and something else diff --git a/doc/main.md b/doc/main.md index a92cbfd..6205e2e 100644 --- a/doc/main.md +++ b/doc/main.md @@ -138,3 +138,17 @@ works only with numbers (and variables with number type) { print: ["Bye, ", { var: "name" }, "!"] }, ] ``` + +## Delete variable + +```json5 +[ + { + let: { + name: { input: "Your name: " }, + }, + }, + { print: ["Bye, ", { var: "name" }, "!"] }, + { delete: "name" }, //deletes variable from memory +] +```