Motor control

So my motor shield came in the mail and she is really pretty.
Controls 4 dc motors, 2 steppers and 2 servos.

How exactly do I program motors to move?
I'm pretty sure they don't work under similar programming as an LED on and off.
But can anyone help me with a code just to turn the motor on?

I'm pretty new at this.

Controls 4 dc motors, 2 steppers and 2 servos.

There is an “or” missing in there, somewhere. That shield will not control 8 motors at the same time.

Where did you get the shield from? Almost certainly, they provide sample code. If not, check lady ada’s site.
http://www.ladyada.net/make/mshield/use.html

My apologies I meant to put or.

and here is the link

http://www.emartee.com/product/41468/Arduino-Motor-Drive-Shield

According to the link I should follow this as an example.

#include <AFMotor.h>

AF_DCMotor motor(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Motor test!");
  
  motor.setSpeed(200);     // set the speed to 200/255
}

void loop() {
  Serial.print("tick");
  
  motor.run(FORWARD);      // turn it on going forward
  delay(1000);

  Serial.print("tock");
  motor.run(BACKWARD);     // the other way
  delay(1000);
  
  Serial.print("tack");
  motor.run(RELEASE);      // stopped
  delay(1000);
}

However this example is sweltering with errors.
Some errors I do not understand.

Madame Trusant and her crystal ball have the weekends off. If you still need help, you'll need to post the errors you are getting.

Is it safe to assume that you installed the AFMotor library in the right place?

It was an issue with the library.
Thank you =)