How to only display certain items/rows of a nested list in a TextDisplay

armina arminka.jan at gmail.com
Thu May 8 10:36:22 UTC 2014


Hi Mattias,

I would use label object for that.
try put your sentences into list under two attributes (say, Target and 
Question) and mark empty cells in the Question as 0.
the procedure would be the following: 
Target TextDisplay
InLine
Question TextDisplay
Label_NoQuestion

InLine content: 
If c.GetAttrib ("Question")="0" then 
GoTo Label_NoQuestion
Else
End If

it should work. 
good luck!
armina



On Wednesday, 7 May 2014 22:06:59 UTC+3, mattias... at gmail.com wrote:
>
> Hi,
>
> I am putting together an experiment in the builder and have run into a 
> small problem I can't seem to solve.
>
> The experiment is a list of 120 sentences being showed in random order by 
> a TextDisplay. 32 of these have a comprehension question to go with them. 
> All sentences are paired up in the same .txt-file, and by the 88 of the 120 
> sentences that lack a comprehension question there is a gap (alternatively 
> a 'junk value') instead of a comprehension question.
>
> I have set this up as follows: a main list with the 120 sentences as one 
> list attribute, which is retrieved from a file saved on the hard drive. I 
> have just typed in [<120sentences>] the first row ("ID") so that it 
> retrieves the lot from a tab delimited text file, and the same name 
> ([<120sentences>]) in the TextDisplay window. Then I have a nested list 
> (List2) in the one containing the 120 sentences (List1). It has the same 
> set up: 1 attribute; this time with [<32 sentences + (120-32) gaps where I 
> have no text>], so that it retrieves all those sentences from the other row 
> in the list. The text files are set up correctly and function. The thing I 
> cannot do is get rid of the 88 gaps which pop up every time I run the 
> program. The gaps are there because I need to make sure that the 
> comprehension question is paired up with the correct sentence.
>
> I have tried a number of things:
>
> 1) I have tried to set the default value of the list to "nothing at all", 
> and had no value at all in the gap next to sentences which lack a 
> comprehension question to see if I could instruct the program to simply not 
> print anything for those places in the list.
>
> 2) I have tried to write a criterion in an inlist which says:         If 
> TextDisplay2.ACC = 0 then List2.Terminate                'TextDisplay2' is 
> the text output I see on the screen coming from the nested list. 'List2' is 
> the name of the nested list. To try and make the program terminate and go 
> back to the start of the loop - List 1 (and rest of the loop)... followed 
> by List 2... - then from the beginning again - before it performs the 
> process that leads to the pop up of a blank slide with the default value on 
> it. I have not got this to work. I have tried with other values than 0 - 
> "x" for a string of "x" in it, and then put "x" in all those gaps in the 
> list I have made. That did not work though.
>
> 3) I have tried to put all the values in the nested list into the list 
> manually in Eprime, by making 120 rows, and then putting the Weight to 0 
> for all the Gap sentences with the hope that this will instruct the program 
> to not print these ones. But that does not work either, it still prints 
> them.
>
> I have probably done one or few other things I cannot remember right now, 
> but these 3 points summarize the main strategies I have been using, so all 
> those other attempts have just been variations on them. The fact stands 
> that none of them seem to work.
>
> So I'd be indebted to anybody who cared to offer some pointers, thanks. I 
> have looked in the manual, that's how I found the inLine "If ---.ACC = X 
> then ---.Terminate". Maybe I am not looking hard enough...
>
> Grateful for your assistance!
>
> Regards,
>
> Mattias
>

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/b5a51c09-bc99-4e93-a9ea-b0888da2e73d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140508/0ba2e780/attachment.htm>


More information about the Eprime mailing list