• 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
Re: Taking into account negative numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Taking into account negative numbers


  • Subject: Re: Taking into account negative numbers
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 25 Jun 2002 10:01:48 -0700

On 6/25/02 4:04 AM, "Anthony Adachi" <email@hidden> wrote:

> Does anybody know what's the best way to check to see whether a number is
> negative?

if x < 0

seems a pretty simple way to do it.

if x < 0 then set x to -x

should take care of your situation, no?

--
Paul Berkowitz
_______________________________________________
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.

  • Prev by Date: Re: AppleScript 1.8.3 Available for Mc OS 9 and X
  • Next by Date: How do I make a directory in Fetch?
  • Previous by thread: Re: Taking into account negative numbers
  • Next by thread: Re: Taking into account negative numbers
  • Index(es):
    • Date
    • Thread