It's telling me that one is void but I don't understand. BTW I am only trying this out because somebody has written it in a game I am using. I am a newbie so would always write out the long.handed conditional.
var strAnimal:String = "animal";
strAnimal = "animal" ? trace("animal"): trace("not an animal");