How do I make multiple paths for a NavMeshAgent?

I was wondering how i could set up multiple points in a path for my NPC (such as a guard’s patrol route where it goes to one place then another and loops back to the original and repeats), i can make them go to one easy enough, but i have no idea how to make several, can anyone help with this please i am using c# to program and am fairly new, here’s what i got so far.

using UnityEngine;
using System.Collections;

public class EnemyPathScript : MonoBehaviour {

	GameObject robo = GameObject.Find ("Search Bot V-1");

	public Transform start;
	public Transform path1;
	public Transform path2;
	public Transform path3;
	public Transform path4;
	public Transform path5;
	NavMeshAgent agent;

	void Start () {

		agent = GetComponent<NavMeshAgent>();
	
	}

	void Update () {
	
		if (transform.position = start.position) {
						agent.SetDestination (path1.position);
				} else if (transform.position = path1.position) {
						agent.SetDestination (path2.position);
				}

	}
}

Use a routine

but why not just give it a single goal position and the navmesh will calculate the entire path itself?

you can try something like:

float distanceToTarget = 1.2f;
void Update()
{
    if(currentTarget == null || 
       Vector3.Magnitude(currentTarget.transform.position - this.transform.position) < distanceToTarget )
    {
        currentTarget = GetNewPath();
        agent.SetDestination(currentTarget.transform.position);
    }
}

void StartNewPath()
{
    if(currentTarget == null)
    {
        return start;
    }
    else if(currentTarget == start)
    {
        return path1;
    }
    else if(currentTarget == path1)
    {
        return path2;
    }
    else if(currentTarget == path2)
    {
        return path3;
    }
    else if(currentTarget == path3)
    {
        return path4;
    }
    else if(currentTarget == path4)
    {
        return path5;
    }
    else if(currentTarget == path5)
    {
        return path1;
    }
}

another a bit cleaner way would be to keep your destinations in array and control next path currentTargetIndex