Added Boolean category
This commit is contained in:
@@ -164,6 +164,85 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Boolean",
|
||||
"entries": [
|
||||
{
|
||||
"name": "boolean()",
|
||||
"description": "Computes the effective boolean value of the sequence $arg.",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "item()* (One or more)",
|
||||
"description": "$arg"
|
||||
}
|
||||
],
|
||||
"output": "xs:boolean? (Optional)",
|
||||
"examples": [
|
||||
{
|
||||
"command": "boolean(0)",
|
||||
"output": "false"
|
||||
},
|
||||
{
|
||||
"command": "boolean(())",
|
||||
"output": "false"
|
||||
},
|
||||
{
|
||||
"command": "boolean(1)",
|
||||
"output": "true"
|
||||
}
|
||||
],
|
||||
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-boolean"
|
||||
},
|
||||
{
|
||||
"name": "true()",
|
||||
"description": "Returns the xs:boolean value true. Equivalent to xs:boolean('1').",
|
||||
"arguments": [],
|
||||
"output": "xs:boolean",
|
||||
"examples": [
|
||||
{
|
||||
"command": "true()",
|
||||
"output": "true"
|
||||
}
|
||||
],
|
||||
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-true"
|
||||
},
|
||||
{
|
||||
"name": "false()",
|
||||
"description": "Returns the xs:boolean value false. Equivalent to xs:boolean('0').",
|
||||
"arguments": [],
|
||||
"output": "xs:boolean",
|
||||
"examples": [
|
||||
{
|
||||
"command": "false()",
|
||||
"output": "false"
|
||||
}
|
||||
],
|
||||
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-false"
|
||||
},
|
||||
{
|
||||
"name": "not()",
|
||||
"description": "$arg is first reduced to an effective boolean value by applying the fn:boolean() function. Returns true if the effective boolean value is false, and false if the effective boolean value is true.",
|
||||
"arguments": [
|
||||
{
|
||||
"type": "item()",
|
||||
"description": "$arg"
|
||||
}
|
||||
],
|
||||
"output": "xs:boolean",
|
||||
"examples": [
|
||||
{
|
||||
"command": "not(false())",
|
||||
"output": "true"
|
||||
},
|
||||
{
|
||||
"command": "not(true())",
|
||||
"output": "false"
|
||||
}
|
||||
],
|
||||
"documentationReferenceURL": "https://www.w3.org/TR/xquery-operators/#func-not"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Number",
|
||||
"entries": [
|
||||
|
||||
Reference in New Issue
Block a user