Hello all,
I currently have the following piece of code:
switch (myArray[0]){
case null:
trace("null case detected"); //does not trace
break;
case "test":
trace("test case detected");
break;
}
It does not work when myArray[0] is null;
However, the following works:
if (myArray[0] == null){
myArray[0] == "nullhack"
}
switch (myArray[0]){
case "nullhack":
trace("null case detected"); //trace works
break;
case "test":
trace("test case detected");
break;
}
Any ideas?
Cheers