Forget Value
Lets go of what was remembered under a key; Result says whether there was anything.
ƒForget Value
KeyvisitsResult
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Keykey | text | "visits" | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
Resultdeleted | bool |
The code it becomes
The graph below written as a script would write it.
let s2_deleted = false;// On Scene Start{ const k = String("visits"); s2_deleted = scene.store.keys().indexOf(k) >= 0; scene.store.remove(k);}scene.log(s2_deleted);In a graph
◆On Scene Start
ƒForget Value
KeyvisitsResult
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.