模板:If both/doc

維基百科,自由的百科全書
跳至導覽 跳至搜尋

{{#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

參見


模板數據

以下是該模板的模板資料,適用於視覺化編輯器等工具。

If both模板資料

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

參考文獻