Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Bucle While #16

Closed
CosasDePuma opened this issue Jul 4, 2019 · 0 comments
Closed

Bucle While #16

CosasDePuma opened this issue Jul 4, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@CosasDePuma
Copy link
Collaborator

CosasDePuma commented Jul 4, 2019

🚀 Cómo implementar un bucle condicional


La arquitectura actual de LiteGraph no permite implementar de una manera sencilla un bucle While, así que esta es la manera más cercana a dicha finalidad:

While

Para ello es necesario implementar el siguiente nodo (Unión):

function Union()
{
    this.addInput("", LiteGraph.ACTION);
    this.addInput("", LiteGraph.ACTION);
    this.addOutput("", LiteGraph.EVENT);
}

Union.title = "Unión";
Union.desc = "";

Union.prototype.onAction = function()
{
    this.triggerSlot(0, "union");
}

LiteGraph.registerNodeType("Control/Unión", Union);
@CosasDePuma CosasDePuma added the enhancement New feature or request label Jul 4, 2019
@CosasDePuma CosasDePuma self-assigned this Jul 4, 2019
@CosasDePuma CosasDePuma pinned this issue Jul 4, 2019
@CosasDePuma CosasDePuma added this to the Visual Alfred milestone Jul 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant