﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » /branch = [if (texbox.mybox1.response == text.mytext1.currentitem) trial.3 else trial.4] is not working =( - Why?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 16 Sep 2026 14:36:49 GMT</lastBuildDate><ttl>20</ttl><item><title>/branch = [if (texbox.mybox1.response == text.mytext1.currentitem) trial.3 else trial.4] is not working =( - Why?</title><link>https://forums.millisecond.com/Topic14998.aspx</link><description>Hello,&lt;br/&gt;I have a surveypage with one textbox. Depending on whether or not the string entered here matches an Item from an item list contained in a text, I like to present different consecutive trials. However, although textbook.mybox1.response and text.mytext1.currentitem contain the same word/string this command does not work =( Can you tell me what I've done wrong?&lt;br/&gt;Thank U&amp;nbsp;</description><pubDate>Sat, 15 Nov 2014 06:39:20 GMT</pubDate><dc:creator>july1810</dc:creator></item><item><title>RE: /branch = [if (texbox.mybox1.response == text.mytext1.currentitem) trial.3 else trial.4] is not working =( - Why?</title><link>https://forums.millisecond.com/Topic14999.aspx</link><description>Since you did not provide your actual code, it is not possible to tell what you did wrong. What I can tell you is that it works perfectly fine if done correctly:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1-3=mypage]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ questions = [1=mytextbox]&lt;br/&gt;/ branch = [if (textbox.mytextbox.response == text.mytext.currentitem) trial.match else trial.nomatch]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox mytextbox&amp;gt;&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("A", "B", "C")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial match&amp;gt;&lt;br/&gt;/ stimulusframes = [1=matchtext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial nomatch&amp;gt;&lt;br/&gt;/ stimulusframes = [1=nomatchtext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text matchtext&amp;gt;&lt;br/&gt;/ items = ("Your response matched the displayed text.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text nomatchtext&amp;gt;&lt;br/&gt;/ items = ("Your response did *not* match the displayed text.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sat, 15 Nov 2014 06:39:20 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>