Another difference X vs Classic (maybe AS 1.7 vs 1.6)
Another difference X vs Classic (maybe AS 1.7 vs 1.6)
- Subject: Another difference X vs Classic (maybe AS 1.7 vs 1.6)
- From: Charles Arthur <email@hidden>
- Date: Fri, 9 Nov 2001 19:14:46 +0000
Try this:
--
set theList to {"yes", "Y", "y", "YES", "yES", "N", "n", "no", "NO", "nO"}
set newlist to {}
repeat with anitem in theList
copy anitem as boolean to the end of newlist
end repeat
newlist
-->{true, false, false, true, true, false, false, false, false, false} in X
--> Can't make "yes" into a boolean. in Classic (9.2.1).
I was puzzling like mad over why my script wouldn't run in a machine
running OS9 which contained that sort of loop.... since I could remember
that I'd done it and got it to work, but not on which machine I'd
demonstrated it.
Charles
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...