Sunday, December 4, 2022

#1 2005-10-13 03:10:00 pm

From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Can I ignore the case/diacriticals/etc when working with a string?

Yes. You can use special statements called ignoring or considering statements.

You can ignore the following attributes: case, diacriticals, expansion, hyphens, punctuation and white space.

By default, AppleScript ignores only the case of strings. Example usage:


ignoring case and diacriticals
   "castle" = "CÃ¥stle" --> true
end ignoring

To take into consideration some attributes, simple replace "ignoring" with "considering".



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)