Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithtemp = inputFields("in1") works properly, but it produces a LIST datatype, instead of a string.
While in Brainscript, you can use any of the LIST operators against "temp" such as
i=find(temp,"color") #returns the position in the list of the field named "color"
At this time, LAE can not EMIT a LIST datatype, you'd need to convert it to a string. (there is an open enhancement request to be able to emit LIST datatypes)
The simplest way to do this is:
emit temp=inputFields("in1").str()
which will return a column like this:
"{color;id;type;rand;junk}"
It's rather awkward, but for a comma-separated list, what I prefer to use is this:
emit temp=inputFields("in1").str().replace("{","").replace("}","").replace(";",",")
edit: fixed the last replace() above.