annisaindah

"There was a failure during tghe processing, check the Geoprocessing Result window"

Discussion created by annisaindah on Jun 14, 2011
Latest reply on Mar 26, 2012 by dkwiens
Dear all,

    I have a problem with VB Script where i want to use IF statement.
    For example: I have attributes:
    1. Quality Ratio (value, field type: double)
    2. Status (Text)
  
So what i want to do is:
    If the value in Quality Ratio is >= 0.81 then the Status is "High"
    If the value in Quality Ratio is <= 0.6 then the Status is "Moderate".
    Else is "Good".

   So far I have tried in VB Script using Field Calculator but it doesnt work. This is the script:
Dim Status as string
If [MEAN_QR] <= 0.6 Then
  Status = "Moderate"
elseif [MEAN_QR] >= 0.81
  Status = "High"
else
  Status = "Good"
end if

   
Then I always get this error message "There was a failure during the processing, check the Geoprocessing Result window for details".

Does anybody can help?

Annisa

Outcomes