aht505

Calculate field tool is assigning the FIRST VALUE to all the records!!!

Discussion created by aht505 on Jun 17, 2012
Latest reply on Jun 18, 2012 by aht505
I am trying to calculate field
i m using vb type of expression

in the codeblock i have written this code
Dim getCVAL
If (Diameter>10) Then
  getCVAL="1234"
else
  getCVAL="4567"
End if

in the expression, i have written getCVAL

Calculate field tool is assigning the FIRST VALUE to all the records!!!

now what is wrong with this code,
please help thanks

Outcomes