title: why isn't my code reacting to this if statement (Global Variables)
body: <p>I am creating a game where I have buttons on the canvas connected to public 'GameVar's and when the forward one is pressed or the W button is pressed, I want it to change the x of the 'runaxis' vector2 and display "forward" on a public string to show it. </p>
  
  <p>I've already tried adding things like ' == true' etc, but none of it seems to work</p>
  
  <pre><code>public class ClassName : MonoBehaviour
  {
      public string GoingFB;
  
      void Update()
      {
          if (GameVar.ForwardArrow || Input.GetKey(KeyCode.W))
          {
              FPS.runAxis.x = 2f;
              GoingFB = "Forward"; 
          }
  
          if (GameVar.BackArrow || Input.GetKey(KeyCode.S))
          {
              FPS.runAxis.x = -2f;
              GoingFB = "Backward";
          }
  
          if (GameVar.ForwardArrow == GameVar.BackArrow || Input.GetKey(KeyCode.S) == Input.GetKey(KeyCode.W))
          {
              FPS.runAxis.x = 0f;
              GoingFB = "Null";
          }
      }
  }
  </code></pre>
  
  <p>I'd expect it to say "forward" in the inspector when I press the forward arrow. I have tested the arrows, and they do change the GameVar.</p>