如何在Lotus Notes中结束if语句。
示例。
@If(@Text(textbox1)="";@Failure("Please input your name");@Success);@command([filesave])
您可以使用@Return("")来结束公式语句的执行。
请阅读 Lotus Notes 和 Domino Designer 客户端的文档。在 Lotus Notes 数据目录的帮助文件夹中查找帮助数据库。
这是 @Return 的在线帮助: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.main.doc%2FH_RETURN.html
这是 @If 的在线帮助: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.main.doc%2FH_IF.html
你可以跳过@success afaik并尝试这个:
@If(
@Text(textbox1)="";
@Failure("Please input your name");
@command([filesave])
);
另一种选择是使用@do:
@If(
@Text(textbox1)="";
@Failure("Please input your name");
@do(
@success;
@command([filesave])
)
);
您可以通过简单的提示来替代failure方法。
@If(
@Text(textbox1)="";
@prompt([OK],"Warning", "Please input your name");
@command([filesave])
);