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<SPAN class="operator token">-</SPAN>Logis Script Code<SPAN class="punctuation token">:</SPAN>
dim cont <SPAN class="keyword token">as</SPAN> Long
If<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">[</SPAN>CONTOUR_FEET<SPAN class="punctuation token">]</SPAN> MOD <SPAN class="number token">50</SPAN><SPAN class="operator token">=</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">)</SPAN> Then
cont<SPAN class="operator token">=</SPAN><SPAN class="number token">1</SPAN>
Else
cont<SPAN class="operator token">=</SPAN><SPAN class="number token">0</SPAN>
End <SPAN class="keyword token">if</SPAN>
INDEX_50FT<SPAN class="operator token">=</SPAN>
cont<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>