For faster navigation, this Iframe is preloading the Wikiwand page for 模板:If either/doc.

模板:If either/doc

文氏图

逻辑或(logical or)又称逻辑析取(logical disjunction)、逻辑选言,是逻辑数学概念中的一个二元逻辑算符。其运算方法是:如果其两个变量中有一个真值为“真”,其结果为“真”,两个变量同时为假,其结果为“假”。

例子

代码 结果
((If either|a|b|true|false)) true
((If either|a| |true|false)) true
((If either| |b|true|false)) true
((If either| | |true|false)) false

参见

  • ((或门))


模板数据

以下是该模板的模板数据,适用于可视化编辑器等工具。

If either模板数据

计算两个逻辑值的逻辑或

模板参数

参数描述类型状态
要运算的值11

无描述

字符串可选
要运算的值22

无描述

字符串可选
为真时3

为真时显示的内容

内容可选
为假时4

为假时显示的内容

未知可选
{{bottomLinkPreText}} {{bottomLinkText}}
模板:If either/doc
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?