title: What is analogue of lua `local variable = var1 or var2` in C#?
body: <p>Im quite familiar with lua and I want to perform w simple variable set value.</p>
  
  <p>In lua:</p>
  
  <pre><code>local variable = var1 or var 2
  </code></pre>
  
  <p>Which means if <code>var1</code> exists, set <code>variable</code>'s  value to <code>var1</code>, otherwise set it to <code>var2</code>.
  How to perform such equation in C#? I just learn Unity 3D an wonder how to perform such thing.</p>
  
  <p>Edit</p>
  
  <p>So in my particular case:</p>
  
  <pre><code>public GameObject to (GameObject localTarget, string[][] transitionParams)
  {
      int delay = transitionParams.delay;
      int timer = transitionParams.timer;
  
      int x = transitionParams.x;
      int y = transitionParams.y;
  }
  </code></pre>
  
  <p>How to check if those params are set? Each one of <code>transitionParams</code> may be <code>nil</code>. They are all optiona.</p>