Friday, June 23, 2017

#1 2005-10-13 04: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

[ Generated in 0.026 seconds, 8 queries executed ]

RSS (new topics) RSS (active topics)