Fixed IF syntax
Added processes for openning and closing the gripper