Created the Delete Dynamic Variable node page. |
your -> you're |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
The <code>Delete Dynamic Variable</code> node takes in a [[Slot|slot]] hierarchy and a [[Type:string|string]] literal for the path. This will check for the [[Component:DynamicVariableSpace|dynamic variable space]], and then the variable within, if one is found, the variable will be removed. For more information, see [[Dynamic Variables]]. | The <code>Delete Dynamic Variable</code> node takes in a [[Slot|slot]] hierarchy and a [[Type:string|string]] literal for the path. This will check for the [[Component:DynamicVariableSpace|dynamic variable space]], and then the variable within, if one is found, the variable will be removed. For more information, see [[Dynamic Variables]]. | ||
{{Note|Keep in mind that the top most output is '''OnNotFound'''. This can be confusing (especially if | {{Note|Keep in mind that the top most output is '''OnNotFound'''. This can be confusing (especially if you're not paying attention when connecting nodes) when the code fires and nothing happens.|warning}} | ||
== Inputs == | == Inputs == | ||
Line 43: | Line 43: | ||
Fires when a dynamic variable was found and deleted. | Fires when a dynamic variable was found and deleted. | ||
[[Category:ProtoFlux:Variables: | [[Category:ProtoFlux:Variables:DynamicVariables]] |
Latest revision as of 20:41, 19 May 2024
Delete Dynamic Variable
Dynamic
The Delete Dynamic Variable
node takes in a slot hierarchy and a string literal for the path. This will check for the dynamic variable space, and then the variable within, if one is found, the variable will be removed. For more information, see Dynamic Variables.
Inputs
* (Call)
Calls an impulse to find and delete the variable from the given hierarchy and path.
Target (Slot)
This slot hierarchy to search through.
Path (string)
The path to find the dynamic variable.
Outputs
OnNotFound (Continuation)
Fires when the path is incorrect or there is nothing to find in the given slot hierarchy.
OnDeleted (Continuation)
Fires when a dynamic variable was found and deleted.