https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
s

stocky-pencil-67419

01/26/2023, 1:09 PM
Hi, Is there any solution to use the attribute value inside a targeting condition like this?
f

fresh-football-47124

01/26/2023, 6:54 PM
Hi Arun. that’s not supported today. There might be a way to work around this - perhaps you can describe what you’re trying to do?
s

stocky-pencil-67419

01/27/2023, 5:09 AM
Hi, Graham Have a look at the image. Here, active_purchase_track_ids is an array of numbers and current_track_id is a string. I am trying to figure out a condition to check current_track_id is not included in list active_purchase_track_ids
f

fresh-football-47124

01/27/2023, 6:40 AM
you could use the $nin opperator
s

stocky-pencil-67419

01/27/2023, 6:42 AM
Here the problem is we don't get the value of current_track_id attribute
Have a look at the image. We cant add variable - current_track_id (green font) there. Instead a number or a word is allowed.
11 Views