Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Wed Dec 29, 2004 10:02 pm   

Nested #LOOPDB ?
 
I have two nested #LOOPDB. Is there a way to access external %val from internal loop?
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Thu Dec 30, 2004 12:01 am   
 
I don't know if there is, but an easy fix would be to put the %val in a variable.

IE

#LOOPDB test {#VAR Value %val;#LOOPDB insideloop {Commands}}

Then use the @Value to access it.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
AlT
Beginner


Joined: 11 Jun 2003
Posts: 22
Location: Moldova

PostPosted: Thu Dec 30, 2004 10:53 am   
 
Yes, that's an obvious way to do that. I just was interested if there is a way to go without additional, external variable?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net