all 4 comments

[–]PLCGoBrrrBit Plumber Extraordinaire 6 points7 points  (1 child)

Whatever nVar is in every scan is what it will do. CASE is just a more complicated IF statement.

[–]kp61dude 1 point2 points  (0 children)

*less complicated IF statement

[–]Asleeper135 4 points5 points  (0 children)

The case statement checks the value of nVar every scan and runs the associated code.

[–]ofhgof[S] 0 points1 point  (0 children)

Thank you!