https://docwiki.embarcadero.com/Libraries/Sydney/en/System.StrUtils.IfThen
function IfThen(AValue: Boolean; const ATrue: string; AFalse: string = ''): string;
uses System.StrUtils;
相当于Excel的IF函数
OrderStr := OrderStr + '[' + Columns[I].FieldName + '] ' + IfThen(Directions[I], ' ASC', ' DESC') + ',';
标签:StrUtils,string,Delphi,System,语法,OrderStr,IfThen From: https://www.cnblogs.com/tulater/p/17919225.html