HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Display something IF x happen...
Display something IF x happen...
  View type:
Hi,

I've realized a test with the object "test result" where at the end appears the total result( in scale 100).

I want to realize a button that clicked makes the following action:

IF score > 99 display SlideX
else
display SlideY

How can I do that and where should I put the code?

Thanks.
 
Put a button on the slide or frame and rightclick on it. When the action-window opens up choose the action "onclick" located on the left column and then insert and configure the following items:

IF SCORE
GOTO
ELSE
GOTO

Good luck,
Jose
 
 
hi,
After clicking the button I get a popup message:

? Action: else

Why?!

I've followed your advice:
if score
goto
else
goto

thanks
 
 
 
For the indents see message

http://www.courselab.com/db/cle/CF42BB27C226AC00C32575CB00419CCA/main_id/DEB1AE8A7B1B3576C3256FCF0055974C/extended/1/sid//did//forum.html
 
 
 
Make sure the indents are correct:

IF SCORE = XX
GOTO FRAME XX
ELSE
GOTO FRAME XX

 
Hi Frank!

The code must be put on the button.
Put a button on the slide or frame and rightclick on it. The action-window opens up when you choose action. Choose "onclick" on the left column and the action "if score". If you need more information on if-conditions read the thread "if conditions" in the community. To jump to a certain frame use "go to" action.
If the explanation isnґt claer enough just ask again.
Greetings, julia
Subject:
Message options
No additional options