| In a continuing effort to teach myself arc (and programming in general), I am playing around with news.arc. Currently, I have run into an issue, that seems like it should be straight-forward, but I'm stumped. I have allowed users to select other users as friends. In their prof, they have a list of friends i.e. (friends ("bob" "mary")). -That's well and good. However, when visiting a friends' profile page, I want to change some things conditional upon their friend status. I figured I could simply test whether the subject of the profile page was among the users' friends, so I tried: (if (in subject (uvar user friends))
(do such and such...))
I've tried several variations on the theme, but can't seem to get a true case. Is there a way to test if a string is in a list of strings that I am missing? This must be easier than it seems. :/Thanks in advance. |