I am trying to calculate the cost of a route based on the propietaries of the segments of road.
I am looking for a way to calculate the distance traveled for attribute and I have the next codelines, that works but not like I need.
dim costone
dim costwo
dim total
If [owner] = "FERRONorth" And [owner] = "KNS" Then
costone = [Shape_Length] * 1500
ElseIf [owner] = "FERROSouth" And [owner] = "MAYAB"
costwo = [Shape_Length] * 2800
End If
total = costone + costwo