babak53_m

Attribute Table- Field calculation using conditional IF

Discussion created by babak53_m on Jan 4, 2012
Latest reply on Jan 5, 2012 by rfairhur24
Hi,

To calculate the values in Field: "Start_time" using those in Field: "Period_Sta", I tried expression below. However it doesn't work. Can anybody help to debug it?
Thanks

If [Period_Sta] =="01/01" Then
[Start_time]= ???1???
elseif  [Period_Sta] == "01/04" Then
[Start_time]= ???91???
elseif  [Period_Sta] == "30/09" Then
[Start_time]= ???273???
elseif  [Period_Sta] == "31/12" Then
[Start_time]= ???365???
end if

Outcomes