DelphiRazor
DelphiRazor copied to clipboard
uses @if in @foreach statements,but is no effect
@foreach (var emp in employee) { @emp.FirstName "+" @emp.LastName (@emp.PhoneExt) @if(@emp.Salary<10000){(@emp.Salary)}
It would be great to have this working properly. I have added a simple project to try looping through objects in various ways (list/array). It is very similar to the code above. Have tried both a list of objects TList<TObject> and an array TArray<TObject>.