title: "Elseif' not working
body: <p>I've made a php script based on a couple of "If" statements. $depOption can only be <code>bitcoin</code>, <code>ethereum</code>, <code>lisk</code>, <code>EUR</code> or <code>USD</code>.</p>
  
  <p>The content in the <code>if</code> statement works, however the content in the elseif statements return <code>$VAR</code> as 0. </p>
  
  <p>I've tested the code in these statements by themselves, and they work. Only when I put them in my elseif statements, do they not work. </p>
  
  <pre><code>if ($depOption == "bitcoin" or "ethereum" or "lisk")
      {
  
          // Get information on altcoin values
          $request = 'https://api.coinmarketcap.com/v1/ticker/';
          $response  = file_get_contents($request);
          $data = json_decode($response, true);
          $price = null;
          foreach ($data as $item) {
              if ($item["id"] == "$depOption") {
                  $VAL = $item["price_usd"];
                  break;
              }
          }
      }
  elseif ($depOption == "EUR")
      {
          // Get EUR exchange rate
          $eurrequest = 'http://api.fixer.io/latest';
          $eurresponse  = file_get_contents($eurrequest);
          $eurdata = json_decode($eurresponse, true);
          $VAL = $eurdata['rates']['USD'];
      }
  
  elseif ($depOption == "USD")
      {
          $VAL = 1;
      }
  
  else
      {
          die("Something went wrong.");
      }
  </code></pre>