模板:If either
跳至導覽
跳至搜尋
File:Test Template Info-Icon - Version (2).svg 模板文件[檢視] [編輯] [歷史] [清除快取]
{{#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 |
參見
- {{或門}}
模板數據
<templatedata> { "params": { "1": { "label": "要運算的值1", "type": "string" }, "2": { "label": "要運算的值2", "type": "string" }, "3": { "label": "為真時", "description": "為真時顯示的內容", "type": "content" }, "4": { "label": "為假時", "description": "為假時顯示的內容" } }, "description": "計算兩個邏輯值的邏輯或" } </templatedata>