title: Linq if-elseif-else using linq query in asp.net
body: <p>In my asp.net application i am using linq. I need a help what is the syntax for if-elseif-else using linq in single line.</p>
  
  <pre><code>genericReportList =
      (from CD in list
      select new GENERICREPORT
          {
              CITATIONNO = CD.CITATIONNO,
              DATE = CD.DATE,
              LOCATION = CD.LOCATION,
              //STATUS = CD.STATUS,
              PLATENO = Utilities.DecryptData(CD.PLATENO),
              PSOURCE = CD.PSOURCE,
              MAKE = CD.MAKE,
              ID = Utilities.DecryptData(CD.ID),
              NATIONALITY = CD.NATIONALITY,
              SOURCE = CD.SOURCE,
              NAME = Utilities.DecryptData(CD.NAME),
              VIOLATION = CD.VIOLATION,
              STATUS = CD.STATUS == short.Parse("1") ? "Complete" : "Incomplete"
          }).ToList();
  
  
  If STATUS = CD.STATUS == short.Parse("1") ? "Complete" : and 2 for "Incomplete" and 3 for "Void"
  </code></pre>