How to Code Linear Actuators

We are using linear actuators on our robot, but we can’t find any information on how to code them. Is it the same as a limit switch, and how is it imported?
Thanks

I’m not a programmer.

The actuator itself is a motor (a legal one I hope!). So control it like a motor.

IF you decide to use limit switches or some other means of detecting its position, then when the ‘switch closes’ (or the ‘Thingus Thinguses’), a digital input is used to detect that and possibly is used in the programming to do something (like shut the motor off).

Are you talking about this thing? http://www.andymark.com/product-p/am-3515.htm
If so, this is programmed the same as a servo.