TinyMUX

Valid()

VALID()

 FUNCTION: valid(<category>,<argument>)

 This returns true or false depending on whether the characters and  arrangement of characters in <argument> satisfy the restrictions implied by  <category>.

 Possible values for <category>:

    attrname    Validates attribute name.     comalias    Validates comsys alias.     doing       Validates @doing string.     exitname    Validates exit name.     name        Validates object name.     password    Validates for password rules.     playername  Validates player name for @name and @alias.     malias      Validates @malias name.     maliasdesc  Validates @malias description.

 Valid() does not check the database for existence and it does not guarantee  that an attempt to use such an object will succeed. It only looks at  <argument> as a string of characters.

 Related Topics: isdbref().