From WikiChip
Difference between revisions of "Template:l/doc"
Line 1: | Line 1: | ||
{{template doc | {{template doc | ||
| description = Adds logic symbols | | description = Adds logic symbols | ||
− | | usage = Syntax: <pre>{{l|type|op1|op2}}</pre> Where type can be: not, onot, and, land, or, lor, xor, eq, neq. For example <pre>{{l|and|{{l|onot|A}}|B}}</pre> will result in "{{l|and|{{l|onot|A}}|B}}" | + | | usage = Syntax: <pre>{{l|type|op1|op2}}</pre> Where type can be: not, onot, and, land, land2, or, lor, lor2, xor, eq, neq. For example <pre>{{l|and|{{l|onot|A}}|B}}</pre> will result in "{{l|and|{{l|onot|A}}|B}}" |
+ | |||
+ | * <nowiki>{{l|not|A}}</nowiki> => {{l|not|A}} | ||
+ | * <nowiki>{{l|onot|A}}</nowiki> => {{l|onot|A}} | ||
+ | * <nowiki>{{l|and|A|B}}</nowiki> => {{l|and|A|B}} | ||
+ | * <nowiki>{{l|land|A|B}}</nowiki> => {{l|land|A|B}} | ||
+ | * <nowiki>{{l|land2|A|B}}</nowiki> => {{l|land2|A|B}} | ||
+ | * <nowiki>{{l|or|A|B}}</nowiki> => {{l|or|A|B}} | ||
+ | * <nowiki>{{l|lor|A|B}}</nowiki> => {{l|lor|A|B}} | ||
+ | * <nowiki>{{l|lor2|A|B}}</nowiki> => {{l|lor2|A|B}} | ||
+ | * <nowiki>{{l|xor|A|B}}</nowiki> => {{l|xor|A|B}} | ||
+ | * <nowiki>{{l|eq|A|B}}</nowiki> => {{l|eq|A|B}} | ||
+ | * <nowiki>{{l|neq|A|B}}</nowiki> => {{l|neq|A|B}} | ||
}} | }} |
Latest revision as of 18:02, 27 June 2017
Template documentation
Adds logic symbols
Usage[edit]
Syntax:{{l|type|op1|op2}}Where type can be: not, onot, and, land, land2, or, lor, lor2, xor, eq, neq. For example{{l|and|{{l|onot|A}}|B}}will result in "A · B"
- {{l|not|A}} => ¬A
- {{l|onot|A}} => A
- {{l|and|A|B}} => A · B
- {{l|land|A|B}} => A ∧ B
- {{l|land2|A|B}} => A & B
- {{l|or|A|B}} => A + B
- {{l|lor|A|B}} => A ∨ B
- {{l|lor2|A|B}} => A ∥ B
- {{l|xor|A|B}} => A ⊕ B
- {{l|eq|A|B}} => A = B
- {{l|neq|A|B}} => A ≠ B