What is the best and most SIMPLE way to do this in modern Delphi (Sydney):
var ThisExtension: string;
if ThisExtension in ['.jpeg', '.jpg', '.jpe', '.jif', '.jfif'] then
The above code gives me this compiler error:
E2015 Operator not applicable to this operand type