added Is Child Of ProtoFlux Node Page |
m YoshBot moved page ProtoFlux:Is Child Of to ProtoFlux:IsChildOf: Automated: removing spaces from ProtoFlux namespace |
||
| (One intermediate revision by one other user not shown) | |||
| Line 5: | Line 5: | ||
[ | [ | ||
{"Name": "Instance", "Type": "Slot"}, | {"Name": "Instance", "Type": "Slot"}, | ||
{"Name": " | {"Name": "Other", "Type": "Slot"}, | ||
{"Name": "IncludingSelf", "Type": "bool"} | {"Name": "IncludingSelf", "Type": "bool"} | ||
] | ] | ||
| Line 14: | Line 14: | ||
|}} | |}} | ||
The '''Is Child Of''' node determines if the <code>Instance</code> slot is a descendant of the <code>Other</code> slot. This check is recursive. | |||
== Inputs == | == Inputs == | ||
| Line 20: | Line 20: | ||
=== Instance ([[Slot|Slot]]) === | === Instance ([[Slot|Slot]]) === | ||
The slot to | The slot to test. | ||
=== Other ([[Slot|Slot]]) === | === Other ([[Slot|Slot]]) === | ||
The slot | The potential parent slot of <code>Instance</code>. | ||
=== IncludingSelf ([[Type:Bool|bool]]) === | === IncludingSelf ([[Type:Bool|bool]]) === | ||
If <code>True</code>, the node will return <code>True</code> if <code>Instance</code> is the same slot as <code>Other</code>. Otherwise, the node will return <code>False</code> in this case. | |||
== Outputs == | |||
== Outputs == | |||
=== * ([[Types:Bool|bool]]) === | === * ([[Types:Bool|bool]]) === | ||
Returns <code>True</code> if <code>Instance</code> is a descendant of the <code>Other</code> slot. Otherwise, returns <code>False</code> | |||
== Examples == | == Examples == | ||
[[Category:ProtoFlux:Slots]] | [[Category:ProtoFlux:Slots]] | ||
Latest revision as of 00:24, 21 August 2025
Is Child Of
Slots
The Is Child Of node determines if the Instance slot is a descendant of the Other slot. This check is recursive.
Inputs
Instance (Slot)
The slot to test.
Other (Slot)
The potential parent slot of Instance.
IncludingSelf (bool)
If True, the node will return True if Instance is the same slot as Other. Otherwise, the node will return False in this case.
Outputs
* (bool)
Returns True if Instance is a descendant of the Other slot. Otherwise, returns False