question

Aditya S2 avatar image
0 Likes"
Aditya S2 asked Jeanette F commented

Pull from List query with multiple conditions

Hi,

I was wondering if there is a way I can pull from list using multiple creterias. My puller token is an item consisting of labels: "aisle_id" and "bay_id"

My list consists of all Racks which has labels: "bay_id", "aisle_1" and "aisle_2".

I want to use AND and OR functions in the same pull query, something like:

WHERE bay_id = Puller.bay_id && (aisle_1 = Puller.aisle_id || aisle_2 = Puller.aisle_id)

With this query, the pulled value matches the first creteria but is not matching the second creteria (the one with and OR condition in brackets). In addition I am also getting this error in the console:

1682461653632.png

Is this the correct format to use for the Pull query?

Thanks,


FlexSim 22.2.4
pulling from lists
1682461653632.png (10.1 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Aditya S2, was Jason Lightfoot'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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

No - you're using a version of SQL, so you should use AND and OR rather than && and ||.

5 |100000

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