In my activity, I would like to check how many times consecutively a variable called
user_input is over 10. So, I would like to create a counter variable
i to keep track of it.
I would like to set 1 to
i if the user enters
\left| user_input \right| >10 for the first time, and then add 1 to
i if the user enters another
\left| user_input \right| >10 again consecutively but reset
i to 0 if the next value of
\left| user_input \right| is less then 10.
I get stuck because CL does not have the += operator like other languages. Is there a way to get around it?
I am new to CL so I would like to beg your pardon in advance if the answer is obvious.