• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"+" and "-" are numbers.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"+" and "-" are numbers.


  • Subject: "+" and "-" are numbers.
  • From: Paul Skinner <email@hidden>
  • Date: Fri, 2 Aug 2002 10:54:41 -0400

set testList to {"-", "+"}
repeat with thischar in testList
try
thischar as number
display dialog thischar & " is a number"
on error
display dialog thischar & " is not a number"
end try
end repeat

-->"- is a number"
-->"+ is a number"

"+" as number
-->0

"-" as number
-->0

Why?
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: "+" and "-" are numbers.
      • From: Christopher Nebel <email@hidden>
    • Re: "+" and "-" are numbers.
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: making a new folder
  • Next by Date: Re: get default browser?
  • Previous by thread: Re: Any scripters from Montreal?
  • Next by thread: Re: "+" and "-" are numbers.
  • Index(es):
    • Date
    • Thread