Updated spart.v

if else to switch case