set r to ""
set device to "IPHONE 6 PLUS SILVER 128GB-AUS"
set HighValueDevicesPass to {"IPHONE 7", "IPHONE 6", "IPAD PRO", "IPHONE 6S", "IPHONE 6 PLUS"}
if devices contains HighValueDevicesPass then
set r to "Pass"
end if
return r
I don't understand why this is not working. The variable is "IPHONE 6 PLUS SILVER 128GB-AUS" so actually contain "IPHONE 6 PLUS" which is on the list.
It's working fine if I use IF is on the list, but then I would have to set all different model as a variable.
How can I do a partial match?