title: Codeigniter: URI segments
body: <p>How do I create an if statement saying something like this?
  Basically, how do you use the URI class to determine if there is a value in any segment?</p>
  
  <pre><code>$segment = value_of_any_segment;
  if($segment == 1{
      do stuff
  }
  </code></pre>
  
  <p>I know this is pretty elementary, but I don't totally understand the URI class...</p>