Yes, if I understand your question I remember in C it's if ( string1 == String2 ) { allwhatyouwant; } In delphi (i think but not sure ...) if ( string1 = String2 ) then begin allwhatyouwant; end; The " string1 = string2 " return a boolean value ( true or false ) But you can't do if ( boolean = string ) then I hope it's that ...