Bonjour,

Nos amis anglais appellent �a un ""oneliner" :

 for i 1 3 1 [ if exists? f: to-file rejoin ["output" i ".tmp"][delete f]]

Patrick

----- Original Message -----
From: "COFFRE Richard FTO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 12:01 PM
Subject: [REBOL] For loop and dynamic variable


Hi

I have the following code :

output1: %output1.tmp
output2: %output2.tmp
output3: %output3.tmp

if exists? output1 [ delete output1 ]
if exists? output2 [ delete output2 ]
if exists? output3 [ delete output3 ]

I want to simplify it like this :

for i 1 3 1 [
   output(i): %output(i).tmp
   if exists? output(i) [ delete output(i) ]
]

Any ideas ?

TIA

Richard Coffre
France Telecom Orbiscom
T�l. : 01 47 61 46 28
"Share what you know, learn what you don't"


--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to