模板: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>

参考文献