scripting: implement comparison operators