Conditional statements and captions


Author
Message
psych101
psych101
Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)Partner Member (887 reputation)
Group: Forum Members
Posts: 14, Visits: 73
Hello,

I would appreciate any help with a couple of questions about changing the presentation on the screen based on conditional statements.

First, how could I conditionally change the colour of a caption, if a certain value (trialtype == 1) is met?

Under surveypages, I tried the following:
if (values.trialtype == 1) {
values.player_c = "you"; 
caption.c.txcolor = red}

This did not work as it did for the text in the forum response here: https://www.millisecond.com/forums/Topic16701.aspx

Is there any way to get around this?

In addition, I want to create a caption on the surveypage that only occurs if trialtype ==1 is met. Would I approach this the same way as I did above?

Thank you

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search