28-12-2013, 01:40 PM
نعم صحيح يمكن حذف else
كود :
function InputValidation2(s: string; i: integer): Boolean;
begin
if ((s = 'a') and (i > 2)) or ((s = 'b') and (i > 7)) or
((s = 'c') and (i > 20)) then
Result := True
end;
