question

Ana Ta avatar image
0 Likes"
Ana Ta asked Matt Long answered

List

Hello,

I have a list which contains of several control points. How can I double check that my desired control point is already in the list or not?

Thanks

listlist pull
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Matt Long avatar image
0 Likes"
Matt Long answered

In the List's pull method there is a parameter called flags. If you look at the documentation you'll see:

  • LIST_DO_NOT_REMOVE
    Matching entries on the list will be returned by this command, however, the entries will remain on the list. This is useful when creating a directory or routing that doesn't dynamically change.

Using this flag allows you to query the list without pulling anything off of the list. For example:

treenode result = List("FRList1").pull("WHERE value = model().find(\"Processor1\")", 0, 0, 0, 0, LIST_DO_NOT_REMOVE); //If Processor1 is on FRList1 result = Processor1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.