HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Adding variabales
Adding variabales
  View type:
I am familair with programming formuie such as x=x+1, but cannot get Courselab to do the same.

If I have a variable called count and want to add 1 to it, how would I format this:

IF SUCCESS STATUS......
VARIABLE(COUNT=COUNT+1)

 
That'll be a bug Bob, it's covered in the strand 'Variables - text or string'

Seems when you ask it to evaluate 1+1 it concenates them so you get 11. That is nearly as good as the maths in Excel LOL.
Answer is to parseInt(#var1) + parseInt(#var2) + ...

Fix should be in the next version.
 
 
You did declare the variable somewhere as a module wide variable? If it is used as a part of the decision as to wether the module is passed or not in the module settings would be best.

Is the statement designed to just incrementing the value of count by one? In this case the +1 is a but clumsy.
You could try
Variable(count++)
the ++ should increment the initial value by one unit.
Subject:
Message options
No additional options