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