In Extreme Management Center 8.0.4 and 8.0.5 the ERROR command no longer works and the script will not stop when the condition is met.
IF (![string equal $vendor "Extreme"]) THEN
error "This script is only supported for Extreme switches."
If this script was run on an Enterasys switch the script will continue on past the above condition.