The name of the LogicGate object determines how it will behave!
The naming scheme is as follows:
Naming Examples:
To mark an input id, add it to the @LOGIC GATE INPUTS global (+). This will automatically be removed the next frame, so don't worry about turning the input off. As long as you're inputting (+), it will be detected as active.
To check for an output id, List Each of the @LOGIC GATE OUTPUTS global and compare the ID using a Text Compare
Currently, a logic gate can only take in 1 to 2 inputs and at least 1 output. (Only 1 to 2 inputs. You can have as many outputs as necessary)
Two object cannot have the same name due to Flowlab's naming behavior! This is why the garbage section is there. set this to whatever you need for it to be unique. This doesn't actually do anything, but it makes sure the code can read the name without breaking, in case you have two logic gates with the same name.
Click on an Input (Left Side) to demonstrate the logic gate output (Right Side).
Community Post: https://community.flowlab.io/t/dynamic-logic-gates/42447