• 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
abs revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

abs revisited


  • Subject: abs revisited
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 29 Nov 2003 15:12:37 -0700

set x to -44
set y to {-3, x, -5}
set x to abs(x)
{x, y}

on abs(q)
if q is less than 0 then set q to -q
return q
end abs

--> {44, {-3, -44, -5}}

--
Your right to free speech does not incur an obligation for anyone to listen.
_______________________________________________
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: abs bug?
  • Next by Date: Re: What is wrong with this script?
  • Previous by thread: Re: Specify identically named ejectable disk
  • Next by thread: Internet Connect & Airport
  • Index(es):
    • Date
    • Thread