Re: I want to convert a list of integers to their negative self
Re: I want to convert a list of integers to their negative self
- Subject: Re: I want to convert a list of integers to their negative self
- From: Cesar Escolar <email@hidden>
- Date: Sun, 03 Sep 2000 00:39:48 +0100
el 10/5/00 1:38 AM, Jacco Rens en email@hidden escribis:
>
{"1", "3", "7", "", ""}
try with this:
set lista to {"1", "3", "7", "", "hola"}
repeat with i from 1 to (length of lista)
try
if item i of lista is not "" then ,
set item i of lista to (-(item i of lista) as integer) as string
end try
end repeat
return lista
if you wont "1"... as integers then delete as string in the set paragraph