fix up docs for logic ops
This commit is contained in:
parent
9d77334e84
commit
982208ba0f
2 changed files with 55 additions and 55 deletions
|
@ -889,18 +889,18 @@
|
|||
"hexcasting.page.stackmanip.swizzle.link": "Table of Codes",
|
||||
|
||||
"hexcasting.entry.logic": "Logical Operators",
|
||||
"hexcasting.page.logic.greater": "If the first argument is greater than the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.less": "If the first argument is less than the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.greater_eq": "If the first argument is greater than or equal to the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.less_eq": "If the first argument is less than or equal to the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.equals": "If the first argument equals the second (within a small tolerance), return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.not_equals": "If the first argument does not equal the second (outside a small tolerance), return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.bool_coerce": "Convert an argument to a boolean. The number $(thing)0/$, $(l:influences#null)$(thing)Null/$, and the empty list become False; everything else becomes True.",
|
||||
"hexcasting.page.logic.not": "If the argument is True, return False; if it is False, return True.",
|
||||
"hexcasting.page.logic.or": "Returns True if at least one of the arguments are True; otherwise returns False.",
|
||||
"hexcasting.page.logic.and": "Returns True if both arguments are true; otherwise returns False.",
|
||||
"hexcasting.page.logic.xor": "Returns True if exactly one of the arguments is true; otherwise returns False.",
|
||||
"hexcasting.page.logic.if": "If the first argument is True, keeps the second and discards the third; otherwise discards the second and keeps the third.",
|
||||
"hexcasting.page.logic.equals": "If the first argument equals the second (within a small tolerance), return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.not_equals": "If the first argument does not equal the second (outside a small tolerance), return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.greater": "If the first argument is greater than the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.less": "If the first argument is less than the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.greater_eq": "If the first argument is greater than or equal to the second, return 1. Otherwise, return 0.",
|
||||
"hexcasting.page.logic.less_eq": "If the first argument is less than or equal to the second, return 1. Otherwise, return 0.",
|
||||
|
||||
"hexcasting.entry.entities": "Entities",
|
||||
"hexcasting.page.entities.get_entity": "Transform the position on the stack into the entity at that location (or $(l:casting/influences)$(thing)Null/$ if there isn't one).",
|
||||
|
|
|
@ -6,54 +6,6 @@
|
|||
"advancement": "hexcasting:root",
|
||||
"read_by_default": true,
|
||||
"pages": [
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:greater",
|
||||
"anchor": "hexcasting:greater",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.greater"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:less",
|
||||
"anchor": "hexcasting:less",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.less"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:greater_eq",
|
||||
"anchor": "hexcasting:greater_eq",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.greater_eq"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:less_eq",
|
||||
"anchor": "hexcasting:less_eq",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.less_eq"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:equals",
|
||||
"anchor": "hexcasting:equals",
|
||||
"input": "any, any",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.equals"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:not_equals",
|
||||
"anchor": "hexcasting:not_equals",
|
||||
"input": "any, any",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.not_equals"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:not",
|
||||
|
@ -100,7 +52,55 @@
|
|||
"anchor": "hexcasting:if",
|
||||
"input": "bool, any, any",
|
||||
"output": "any",
|
||||
"text": "hexcasting.page.logic.xor"
|
||||
"text": "hexcasting.page.logic.if"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:equals",
|
||||
"anchor": "hexcasting:equals",
|
||||
"input": "any, any",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.equals"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:not_equals",
|
||||
"anchor": "hexcasting:not_equals",
|
||||
"input": "any, any",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.not_equals"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:greater",
|
||||
"anchor": "hexcasting:greater",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.greater"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:less",
|
||||
"anchor": "hexcasting:less",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.less"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:greater_eq",
|
||||
"anchor": "hexcasting:greater_eq",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.greater_eq"
|
||||
},
|
||||
{
|
||||
"type": "hexcasting:pattern",
|
||||
"op_id": "hexcasting:less_eq",
|
||||
"anchor": "hexcasting:less_eq",
|
||||
"input": "number, number",
|
||||
"output": "number",
|
||||
"text": "hexcasting.page.logic.less_eq"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue