<TD>@rec.IsVoided?"Voided": @(rec.DateOut == null)?"":@(rec.DateIn != null && rec.DateIn.Value > DateTime.Parse("1990-01-01"))? @("Closed: " + @rec.DateIn.Value.ToString("yy-M-d")): @("Still Active")</TD>>I also tried re-writing it in lots of different ways, but still getting errors.
@if (rec.IsVoided) { <td>Voided</td> <td>Voided</td> } else { if (rec.DateOut == null) { <td>Pending</td> <td></td> } else { <td>@rec.DateOut.Value.ToString("yy-M-d")</td> if (rec.DateIn==null || rec.DateIn.Value.Year < 1903) { <td>Still Active</td> } else { <td>Closed: @rec.DateIn.Value.ToString("yy-M-d")</td> } } }>Thanks in advance.