user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/367', '', '38.107.179.242', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 9427, 1337599272) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

Added to v2.06

isvalue

Syntax: %isvalue(rec,value)

returns true if the value exists in the database record. It actually returns the position of the value in the database record for use with %item to retrieve the key.

Examples:

#ADDKEY dbvar Name Zugg
#ADDKEY dbvar Race Dwarf
#ADDKEY dbvar Level 10
#SHOW %isvalue(@dbvar,"Dwarf")

Displays: 2
#SHOW %item(@dbvar, %isvalue(@dbvar,"Dwarf"))

Displays: Race=Dwarf

Add comment

Login or register to post comments