Reply To: Finding Object in a List

Forums 💬 FlowCanvas ⚙️ Support Finding Object in a List Reply To: Finding Object in a List

#22366
Gavalakis
Keymaster

    Hello,
    You can use List.Contains method in FlowCanvas too.
    Here is a small step-by-step for example:

    1) Create a list variable:
    [attachment file=”MyList.png”]

    2) Drag the variable into the editor canvas and select “Get”, to create a node that gets the variable value.

    3) Drag the “Value” output of that new node into empty canvas. This will pop up a list of everything you can do with that type of value. In this case (List).
    [attachment file=”DragPort.png”]

    Within the List category in that popup you will see a lot of list related methods. One of them is Contains. Click it to create a new node that check if the List contains an element.

    For the shake of this example, I added a few more nodes to showcase something more practical:
    [attachment file=”ListContains.png”]

    Let me know if that is indeed what you were after.
    Thanks!