if (sShListView.SelectedFolder.PathName = 'xxx') or
(sShListView.SelectedFolder.PathName = 'yyy') or
(sShListView.SelectedFolder.PathName = 'zzz') then
exit;
이런 if문을 간단하게 줄일 수 있는 방법이 궁금합니다 ㅠㅠ
if sShListView.SelectedFolder.PathName in ['xxx', 'yyy', 'zzz'] then exit;
이런 방법은 string이 아니라 char만 되는 것 같은데 ㅠㅠ
비슷한 방법으로 줄일 수 있는 방법이 없을까요?;
|