Newbie example...
[1/2] from: mgkiourt::otenet::gr at: 27-Sep-2001 17:29
>>taxcoef:0.40
>>taxamount:income*taxcoef
How will I take an outcome list for incomes of say, 50000,60000,70000?
Thanks.
[2/2] from: joel:neely:fedex at: 27-Sep-2001 9:59
If you just want to see the results:
foreach income [50000 60000 70000] [
print [income income * taxcoef]
]
(Notice the spaces, BTW)
If you want to keep the results:
incomes: [50000 60000 70000]
taxes: make block! length? incomes
foreach income incomes [
append taxes income * taxcoef
]
and lots of other variations!
HTH!
-jn-
mgkiourt wrote:
> >>taxcoef:0.40
> >>taxamount:income*taxcoef
<<quoted lines omitted: 4>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
This sentence contradicts itself -- no actually it doesn't.
-- Doug Hofstadter
joel<dot>neely<at>fedex<dot>com
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted