Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
Conditional statements and captions
Conditional statements and captions
Post Reply
Like
12
Conditional statements and captions
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
psych101
psych101
posted 6 Years Ago
ANSWER
Topic Details
Share Topic
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
Reply
Like
12
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Conditional statements and captions
psych101
-
6 Years Ago
+ x [quote] [b] psych101 - 8/7/2019 [/b] Hello, I...
Dave
-
6 Years Ago
Thanks, Dave! This worked for both the cases I needed help with.
psych101
-
6 Years Ago
Post Reply
Like
12
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search