Argument `#1' cannot convert `bool' expression to type `float'

Hey quick question - how do I fix this error :

Argument #1' cannot convert bool’ expression to type `float’

This is the line of the code:

motion *= (Mathf.Abs(input.x) == 1 && Mathf.Abs(input.z == 1))? 0.7f : 1;

sorry C# is not my strong suit.

Thanks.

your input.z section is going wrong … it should be like this

    motion *= (Mathf.Abs(input.x) == 1 && Mathf.Abs(input.z) == 1)? 0.7f : 1;

try this :

motion *= (Mathf.Approximately(input.x,1)  && Mathf.Approximately(input.z, 1))? 0.7f : 1;