Stuck with formula about Id's

What would be a formula if I would like to check when repeatedInfo.current.index is equal to different object list of texts (multiple ID’s)?
I tried IF(repeatedInfo.current.index == pageVars.Templates[0].stagelist , true, false) but seems is not retrieving ID’s from stagelist (list of texts)(each text → number)