Well, the problem is you can’t use the SPIN-Library like the JavaScript JSON-Library.
Despites this your for-loop is not an foreach-loop, so you have to use the index value “i” in the loop itself on the element “tags”…
This code should workapproach would be this code:
var tags = S(execution.getVariable('CustomerTags'));
var response = false;
for (var i = 0; i < tags.elements().length; i++)
{
if (tags.elements().get(i).prop('Name').value() == 'MVPGloria')
{
response = true;
break;
}
}
execution.setVariable('Filter', response);