That’s because isPositionOpen is the wrong type in Lite C. It is a var. Change it to int.