question

Jason P2 avatar image
0 Likes"
Jason P2 asked Connor A commented

Query list with Array

I have a list with a label called zones and it is an array of values for example two tokens on the list

1.) zones = (1,2,5,7)

2.) zones = (8,5,6)


the token that is pulling from the list has a fixed zone for example zone = 1. I want that token to look in the list and look in the arrays and pull the token number 1 because it has a 1 in the array.

I tried but it doesnt work

WHERE zones IN puller.zone

FlexSim 21.2.2
pulling from lists
· 1
5 |100000

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

Connor A avatar image Connor A commented ·

Hi @Jason P2, was Ryan Clark's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Ryan Clark avatar image
0 Likes"
Ryan Clark answered

Hi @Jason P2,

You have the query almost right. You just have to switch your arguments because you want to pull the token if the zone on the puller is IN the array of zones on the pulled token.

So, the query should be WHERE puller.zone IN value.zones.

I hope this helps! Let us know if you have further questions!

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.