uses System.StrUtils;var N: Integer; Classify: string;begin N := -42; //没有三元运算符,可用 IfThen, //但两个分支都会提前求值 Classify := IfThen(N > 0, 'positive', 'negative'); //classify is 'negative' WriteLn('number ', N, ' is ', Classify);end.