Problem with character walking transitions

Here is the code i have for walking Forward and Sideways (two seperate animations)

if(Input.GetAxis("Vertical") > 0.3)      
  woman.animation.CrossFade("walking");
else
  woman.animation.CrossFade("idle");

if(Input.GetAxis("Horizontal") > 0.3)    	
  woman.animation.CrossFade("sidewaysWalk");
else
  woman.animation.CrossFade("idle");

for some reason when i play, it wont play the animations, however when i remove the sideways walking animation line of code, it works. its probably a problem with the sideways walking, but im not sure whats wrong. Any ideas?

Try the following modified IF:

if(Mathf.Abs(Input.GetAxis("Vertical")) > 0.3)      
  woman.animation.CrossFade("walking");
else if(Mathf.Abs(Input.GetAxis("Horizontal")) > 0.3)       
  woman.animation.CrossFade("sidewaysWalk");
else
  woman.animation.CrossFade("idle");

In the original version, you were starting the idle animation in both IFs, one after another. I have no experience with animations, but suspect it could give unexpected results. Additionaly, you must check the absolute value of each GetAxis, since they can go negative as well.