Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
Can you search text in an expression?
Can you search text in an expression?
Post Reply
Like
65
Can you search text in an expression?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Dave
Dave
posted 9 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 104K
Yes, you can use the string functions detailed in the functions reference in the documentation's language reference section.
search
Searches the first string for any occurence of the second string. If the string is found, it returns the zero based index of the first occurence. If the string is not found, it returns -1.
search("benjamin", "ben")
search("benjamin", "benji")
search("benjamin", "jamin")
0
-1
3
Reply
Like
72
writekristin
writekristin
posted 9 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 17,
Visits: 62
I would like to increase a counter value based on whether the stimulus name contains certain letters. I know I can get the stimulus name using
picture.picturename.currentitem
, but is there a way to then search whether this name contains a certain letter or phrase?
Reply
Like
65
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
65
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search