var
j:string;
begin
if GetFormInputValue(7) > GetFormInputValue(8) then
begin
j := 'ความเจ็บปวดลดลง';
ShowMessage(j);
SetFormInputValue(153,j);
end
else if GetFormInputValue(7) = GetFormInputValue(8) then
begin
j := 'ความเจ็บปวดเท่าเดิม';
ShowMessage(j);
SetFormInputValue(153,j);
end
else if GetFormInputValue(7) < GetFormInputValue(8) then
begin
j := 'ความเจ็บปวดเพิ่มขึ้น';
ShowMessage(j);
SetFormInputValue(153,j);
end;
end;