I doubt you can.
A trick could be to separate the values with a "pipe" = |
I use this often for other purposes. There's a useful cf called GetBetween:
getbetween("the Text", "from", "to", occurrence)
Your var would be like
var1 = "|Street|Road|Place|…"
The extraction would be
GetBetween ( var1; "|" ; "|" ; 1 )
The purpose is to obtain data from the first of field f11 to f13 to input into Street type then street name.
List ( FMP Line2 Import::f11 ; FMP Line2 Import::f12 ; FMP Line2 Import::f13 ) ;
to use the data from the first non-empty of these three fields.
Or do you mean: “check if a given string appears in these three fields, and if so, use it”?
PatternCount ( List ( FMP Line2 Import::f11 ; FMP Line2 Import::f12 ; FMP Line2 Import::f13 ) ; var ) ;
where, depending on your data, it may be more safe to use FilterValues().
It's not entirely clear to me what you are trying to achieve, but here are a couple of thoughts that might help you progress:
1. You could declare a series of variables—var1 = "street"; var2 = "road"; etc—rather than trying to set up a single variable containing the lot, which may be not doable.
2. If you then want to test whether the text contains one of these predefined variables, use PatternCount ( txt1 ; var1 ) or PatternCount ( txt1 ; var2 ) or PatternCount ( txt1 ; var3 ) … etc
3. If you are trying to extract the type of carriageway ( street, road, avenue, etc) from your imported text, do you really need to perform this test? Why not, assuming the type is consistently/almost always the right word, simply extract the right word using RightWords.
If you can make your purpose clearer I might be able to come up with something further.
As other mentioned, using pipes or enclosing items inside xml tags is the most common way to store multiple values in the same variable (assuming,this is what you are trying to do)
You can also use repetitions on variables to assign multiple values and retrieve them with repeating functions. This looks like:
Set Variable [$myVar]; Value: "New Value"]
You can also track variable repetitions in Data Viewer.
This will work if you keep it simple as support for repeated fields is quite limited.
I wasn't aware of RepeatingFunctions in Var.
If we get a clou about what you aim to achieve, there might be other ways.
If this is about data import, there's plenty of ways to do better than this. "VirtualList" would be first to catch my mind.