Template:If either/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

{{#lsth:逻辑或}}

例子

代码 结果
{{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模板数据

<templatedata> { "params": { "1": { "label": "要運算的值1", "type": "string" }, "2": { "label": "要運算的值2", "type": "string" }, "3": { "label": "為真時", "description": "為真時顯示的內容", "type": "content" }, "4": { "label": "為假時", "description": "為假時顯示的內容" } }, "description": "計算兩個邏輯值的邏輯或" } </templatedata>