AnsweredAssumed Answered

Field calculate vb to python

Question asked by Tonyalmeida on Oct 16, 2018
Latest reply on Oct 16, 2018 by jborgion

I have a model that i am trying to add a field then do a filed calculate but i am having trouble getting it right. I have tried the following in VB but keep getting the following error. So i was wondering if someone could help maybe right this in python unless someone can help me get the VB script right.

 

Thanks.

 

VB Error

ERROR 999999: Error executing function.
Expected end of statement
Failed to execute (Calc Index 50')

 

Pre-Logis Script Code:

dim cont as Long
If([CONTOUR_FEET] MOD 50=0) Then
cont=1
Else
cont=0
End if

INDEX_50FT=
cont

Outcomes