var
 s:double;
begin
 s:=(DataModule2.Twoli.Fields[5].Value)/(DataModule2.Twoli.Fields[6].Value)*100;
if (DataModule2.Twoli.Fields[2].Value:='男') then
 begin
   if(s>=75) then
   begin
   DataModule2.Twoli.Fields[7].Value:=20;
   end;
   if((s>=70)and(s<=74) )then
   begin
   DataModule2.Twoli.Fields[7].Value:=17;
   end;
   if((s>=63)and(s<=69) ) then
   begin
   DataModule2.Twoli.Fields[7].Value:=16;
   end;
   if((s>=56)and(s<=62) ) then
   begin
   DataModule2.Twoli.Fields[7].Value:=15;
   end;
   if((s>=51)and(s<=55) ) then
   begin
   DataModule2.Twoli.Fields[7].Value:=13;
   end;
   if((s>=41)and(s<=50) )then
   begin
   DataModule2.Twoli.Fields[7].Value:=12;
   end;
   if(s<=40) then
   begin
   DataModule2.Twoli.Fields[7].Value:=10;
   end;
 end;运行总是提示type of expression must be BOOLEAN
为什么啊?