learning c# problem

I’m trying convert my move script in C#, here is a part of code I have

void FixedUpdate()
	{
		if (grounded){
			
			
              // Calculate how fast we should be moving
        	targetVelocity = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
              	if (Input.GetAxis("Horizontal")  Input.GetAxis("Vertical"))
				{
              	speed = wSpeed;
                }else
				{
              	speed = nSpeed;
             	}
			}
	}

in .js its ok, but in c# I’ve got an error:

What should I do?

a float by default cannot implicit convert into a bool operation. This is happening on the if(Input.GetAxis(“Horizontal”) Input.GetAxis(“Vertical”))

You could do input.getAxis() != 0

Thx alot