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
thalor42
Beginner


Joined: 15 Nov 2004
Posts: 18

PostPosted: Fri Jul 15, 2005 5:18 pm   

Adding duplicate items to a database
 
I am trying to get my database ID system to recognize if the name exists AND the level is the same to ASK me if I want it added to the database. Here is what I have so far. It adds it no matter what I do. Any ideas?

#TRIGGER {Edwin, Jack of all Trades says 'There you go.'} {#IF !%null( %query( (@ident.Name)&(@ident.Level != &Level ), All, Name)) {#YESNO "A duplicate item already exists, add anyway?" {#NOOP} {#ABORT 1}};#new @Type @ident;@ident = "";#T- ident} "Ident"

TIA
T
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