if condition not displaying correct message after output

前端 未结 1 1590
萌比男神i
萌比男神i 2021-01-26 06:40

I am having a little issue with my if condition in groovy.

Virtually I want to look at a property value I\'ve set and ensure that is every instance on the response deliv

1条回答
  •  情深已故
    2021-01-26 07:13

    You compare a String (Number?) with List - it won't work. Instead, try to check if given location_id is present on location_id_request List:

    if (location_id in location_id_request) { //... }
    

    0 讨论(0)
提交回复
热议问题