I'm sending to a big list and it has groups of users set up as Data Extensions. I want to do some dynamic content at time of send based on if the user is in a particular Data Extension. There is some overlap but I can deal with that with if/else. I was thinking of doing something like this:
%%[ IF UserIsInDataExtension("London_users") THEN ]%%
(Content for London segment)
%%[ ELSEIF UserIsInDataExtension("Birmingham_users")]%$
(Content for Birmingham segment)
%%[ ELSEIF UserIsInDataExtension("Never_purchased")]%%
(Content for Never purchased segment)
%%[ELSE]%%
(default content)
%%[ END ]%%
Is there something like this in AMPScript , and if there's nothing exactly like this then can I do something which attempts a lookup from the Data Extension as a way of seeing if the user is in it?