1

How to end if statment in lotus notes.

example.

@If(@Text(textbox1)="";@Failure("Please input your name");@Success);@command([filesave])
1
  • The closing parentheses ends the statement. It doesn't need anything else. Jan 3, 2013 at 14:29

4 Answers 4

7

You can end execution of formula statements by using @Return("").

Please read the documentation which is part of your Lotus Notes and Domino Designer clients. Look for the Help databases in the help folder of your Lotus Notes data directory.

Here's the online help for @Return: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.main.doc%2FH_RETURN.html

Here's the online help for @If: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.main.doc%2FH_IF.html

3

You can skip @success afaik and try this:

@If(
    @Text(textbox1)="";
    @Failure("Please input your name");
    @command([filesave])
);

Another option is to use @do:

@If(
    @Text(textbox1)="";
    @Failure("Please input your name");
    @do(
        @success;
        @command([filesave])
    )
);
0
0

You can replace the failure method by a simple prompt.

@If(
    @Text(textbox1)="";
    @prompt([OK],"Warning", "Please input your name");
    @command([filesave])
    );
0

Per the documentation, @Failure is intended for use only in input validation formulas.

Link to @Failure documentation

That article describes how it should be used.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.