HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... IF and indents
IF and indents
  View type:
Hi, I'm exploring Courselab and I'm impressed with its capabilities. I've managed to get the IF command to work, please add a comment in the Help to say that indents must be used to group the commands! Realising that would have saved me time. Leaving indents out will give rise to errors.

IF (Condition='1==1')
<indent>MSGBOX('this is true')
<indent>ELSE
<indent><indent>MSGBOX('this is not true')

Indents are controlled by the 'move left' and 'move right' buttons (ftn) -> for the newbies

Happy courselabbing......
 
waaaa, the script was altered: I typed:


IF (Condition='1==1')
~indent~MSGBOX('this is true')
~indent~ELSE
~indent~~indent~MSGBOX('this is not true')
Subject:
Message options
No additional options