Reply To: Finding Object in a List

FlowCanvas Forums Support Finding Object in a List Reply To: Finding Object in a List

#1152
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:
MyList

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).
DragPort

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:
ListContains

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

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. MyList.png

  2. DragPort.png

  3. ListContains.png