Hi,
PennController is a simple extension to IBEX, so you can still do what you used to do. For example, this is still valid:
items = [
["label", "DashedSentence", {s: ["This is", "what", "I", "have", "in mind"]}]
];
However, you can only store strings in a CSV file, you cannot directly store a javascript array (which is what ["This is", "what", "I", "have", "in mind"]
is) so to accomplish the same using a string from a CSV file, you need to split it into an array, using a character of your choice to serve as the splitting character. Say you choose to use ~, then you can have This is~what~I~have~in mind
in your CSV file, and then do this in your Template
command:
Template( row =>
newTrial(
newController("DashedSentence", {s: row.sentence.split("~")})
.print()
.log()
.wait()
)
)
Jeremy