thalor42 Beginner
Joined: 15 Nov 2004 Posts: 18
|
Posted: 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 |
|