﻿<?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  » Evaluate an expression in a  ?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 12 Sep 2026 18:58:03 GMT</lastBuildDate><ttl>20</ttl><item><title>Evaluate an expression in a  ?</title><link>https://forums.millisecond.com/Topic17031.aspx</link><description>I am creating a &amp;lt;page&amp;gt; for my post instructions that will report on how the user performed, however depending on the performance, I want it to say different things.&amp;nbsp; Is there a way to evaluate a value in the &amp;lt;page&amp;gt; and have it display different wording?&amp;nbsp; Alternatively, I can create two different pages, but can I then do branching in the postinstructions of the &amp;lt;block&amp;gt;?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;</description><pubDate>Mon, 31 Aug 2015 18:14:17 GMT</pubDate><dc:creator>writekristin</dc:creator></item><item><title>RE: Evaluate an expression in a  ?</title><link>https://forums.millisecond.com/Topic17033.aspx</link><description>thank you!&lt;br/&gt;</description><pubDate>Mon, 31 Aug 2015 18:14:17 GMT</pubDate><dc:creator>writekristin</dc:creator></item><item><title>RE: Evaluate an expression in a  ?</title><link>https://forums.millisecond.com/Topic17032.aspx</link><description>Yes, you can embed expressions or create inline expressions in a &amp;lt;page&amp;gt; as usual.&lt;br/&gt;&lt;br/&gt;&amp;lt;expressions&amp;gt;&lt;br/&gt;/ pagetext = if (trial.mytrial.correct) "You won!" else "You lost!"&lt;br/&gt;&amp;lt;/expressions&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ postinstructions = (end)&lt;br/&gt;/ trials = [1=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ validresponse = ("e", "i")&lt;br/&gt;/ correctresponse = ("e")&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;page end&amp;gt;&lt;br/&gt;^&amp;lt;% expressions.pagetext %&amp;gt;&lt;br/&gt;^Goodbye!&lt;br/&gt;&amp;lt;/page&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 31 Aug 2015 04:52:46 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>