Thread: Bug in MEL
View Single Post
# 3 09-12-2003 , 02:26 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
No worries, Pony. I am 99.9% sure that this is a bug. I found a workaround though. The trick is to convert the test variable into a string:
Code:
{
   int $a = -5;
   string $b = $a;

   switch($b)
   {
   case "-5":
        print("\n$a was -5\n");
        break;
   default:
        print("\n$a was some other number\n");
   }
}


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!