Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:casetime [24.01.2015 14:59] – [caseTime()] alexander.ritteren:create:functions:casetime [25.08.2020 11:42] (current) – [Example 2] sophia.schauer
Line 23: Line 23:
 ===== Example 2 ===== ===== Example 2 =====
  
-If the participant needs less than 15 seconds for the previous page, the following PHP code redisplays the page -- along with the text element "too_quick".+If the participant needed less than 10 seconds for the previous page, the following PHP code redisplays the page -- along with the text element "too_quick".
  
 <code php> <code php>
Line 40: Line 40:
 <code php> <code php>
 if (caseTime('hitherto') < 60) { if (caseTime('hitherto') < 60) {
-  text('please_check'); // information next +  text('please_check'); // information message 
-  setNextPage('start'); // after "Next" to page "start"+  setNextPage('start'); // after "Next" go to page "start"
   pageStop(); // do not display any further content on the page   pageStop(); // do not display any further content on the page
 } }
 </code> </code>
en/create/functions/casetime.1422107990.txt.gz · Last modified: 24.01.2015 14:59 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki