Come for answers, stay for best practices. All we're missing is you.
How to display s only if an attribute displays x value
I know your post was quite a while ago but consider using buffer to store "s" and the contains function. Something like:
Buffer bf = create()
int iContains = 0
bf = s
iContains = contains(bf, x,0)
if(iContains >=0)
{
}
delete bf