Portals

Portal In Node Portal Out Node

The Portal nodes operate as pairs, they are only for the purposes of editing logic, they have no impact on the final code that Kwyll executes, neither in terms of memory use or performance. They provide a way to help keep your logic graphs a little less cluttered.

The Portal In node allows you to input any value, such as the result of an operation in the flow, you can give the Portal In node an arbitrary name. You can then create an Portal Out node, and select the name of the Portal In node you created from the dropdown provided. The value that is input to the matching Portal In node will be made available on the output port of the Portal Out node, as if the two nodes were connected by a wire. This allows you to use values elsewhere in your logic without having wires dragging all accross the graph making it difficult to follow.

It is possible to have multiple Portal Out nodes for each Portal In node, just as you can connect the output port of a node to the input port of many other nodes.

NOTE

The same rules apply with regards to all data flow logic nodes, that is, if you connect the output of the Portal Out node to some other node, that node will "request" the value, which in turn will request it from the Portal_In node and it will request the value from the node connected to its input port. Just as if the end node were directly connected to the start node by a wire, which will result in the logic providing the input value to generate code on the export. Do not use Portals in place of Store Value nodes.


Ports

In

On the Portal In node, an input port, the value passed into portal that will appear at the output port of any matching Portal Out node.

Out

On the Portal Out node, an output port, the value on this node will be the value provided on the input of the matching Portal In node.


Parameters

Name

On the Portal In node, an arbitrary name for the portal, choose something that makes it easy to remember when you use the portal’s value on a Portal Out node. On the Portal Out, this will be a dropdown containing a list of all defined Portal In nodes on the current logic graph.