HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... HELP! IF STATEMENT TOGGLE NOT WORKING
HELP! IF STATEMENT TOGGLE NOT WORKING
  View type:
On Slide 1's loading I created a global variable named ShowCC. Its value should be toggled by clicking an image on the master page. Clicking on the image successfully makes it turn it from 0 to 1 but will not toggle it back to 0.

:::Slide 1 (Before Display):::
VARIABLE(Name='ShowCC',Value='0',Scope='1')

:::Master Page (Image's onclick event):::
MSGBOX(Text='#ShowCC')
IF(Condition='#ShowCC='0'')
[TAB]VARIABLE(Name='ShowCC',Value='1',Scope'1')
ELSE
[TAB]VARIABLE(Name='ShowCC',Value='0',Scope'1')
MSGBOX(Text='#ShowCC')

Thanks,
Kevin
 
IMHO should be:

IF(Condition='#ShowCC='0'')
[BLANK]VARIABLE(Name='ShowCC',Value='1',Scope'1')
[BLANK]ELSE
[BLANK][BLANK]VARIABLE(Name='ShowCC',Value='0',Scope'1')
MSGBOX(Text='#ShowCC')
 
 
Thank you so much for your help. That did the trick![:)]
Subject:
Message options
No additional options