Template:If both
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
| 警告 | 此Template被引用於約24,000個頁面。 為了避免造成大規模的影響,所有對此Template的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
{{#lsth:逻辑与}}
例子
| 代码 | 结果 |
|---|---|
| {{If both|a|b|true|false}} | true |
| {{If both|a| |true|false}} | false |
| {{If both| |b|true|false}} | false |
| {{If both| | |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>