Recognizing an argument in csh

I will be passing an argument to a csh script

The script can be either of two forms

For example, either

script.csh zloc=5/10

or

script.csh zloc=5/10/20

So there can be either two values or three values. How can I distinguish which one the user has inputted?

I have made some code that gives me the string after the '='. That is, I have a variable having 5/10 or 5/10/20

well, other than a caveat that coding in csh is not generally the preferred option...

how about:

#  echo "5/10" | awk -F/ '{print NF}'
2

#  echo "5/10/20" | awk -F/ '{print NF}'
3

HTH