abs revisited
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.