Type:Boolean

From Placeography

Revision as of 23:01, February 10, 2008 by Admin (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

The datatype boolean is for attributes that can only have two possible values. You can enter "true" or "false", also 1/0, yes/no, t/f, and y/n.

To allow two arbitrary strings, or more than two possible values (such as no - maybe - probably - yes), see Type:Enumeration. In many circumstances it may be more appropriate to use a category instead of a boolean.

In inline queries, you can specify a format string to control what is displayed for the true and false values of an attribute, separated by a comma. For example, to display a tick (actually a square root symbol) for true and NO for false values of a boolean attribute isHot, you could use

 <ask>
    [[isHot:=+]]
    [[isHot:=*√,NO]]
 </ask>

This type is among the standard datatypes of this wiki.

Properties of type "Boolean"

Showing 3 properties using this type.

C

N

S

Personal tools
Contribute
[http://discussions.mnhs.org/HP/oneonone.cfm snubnosed]