Unity Error Cannot Implicity Convert type 'float' to 'bool'

I am trying to make it so that my character controller can look around my game environment using my mouse. Here is the error I got:

Assets/Materials/Scripts/CCT.cs(34,17); error CS0029; Cannot implicitly convert type ‘float’ to ‘bool’

Here is the script I am using. It is programmed with the C# language.

using UnityEngine;
using System.Collections;

public class CCT : MonoBehaviour {
	public float rotateSpeed = 5.0f;

	// Use this for initialization
	void Start () {
	// Update is called once per frame
	void Update () {
		if( Input.GetKey( KeyCode.W) ) {
			transform.position += transform.forward * 8.0f * Time.deltaTime;
		if( Input.GetKey( KeyCode.S) ) {
			transform.position -= transform.forward * 8.0f * Time.deltaTime;
		if( Input.GetKey( KeyCode.A) ) {
			transform.Rotate( 0.0f, -80.0f * Time.deltaTime, 0.0f);
		if( Input.GetKey( KeyCode.D) ) {
			transform.Rotate( 0.0f, 80.0f * Time.deltaTime, 0.0f);
		CharacterController cc = GetComponent<CharacterController>();
		if( Input.GetAxis("Mouse X") * rotateSpeed );

If anyone has any suggestions please help! Also if anyone has an alternative script that would be greatly appreciated. :smiley: Also, sorry if my tags are weird. I don’t know what they are or how to use them!

if( Input.GetAxis(“Mouse X”) * rotateSpeed );

Take out the ; from after your if brackets. Also Your statement is not checking anything so it is trying to make sense of the float value of the statement as a boolean.

Make it check for a value. e.g

if( Input.GetAxis("Mouse X") * rotateSpeed >= 0.1)