Help with an @if statement please

Hey Guys,

First off I appreciate any assistance forehand.

Scenario: I Want to send a lotus note to a group, if a checkbox is clicked it should send a different note with different verbage.

So Basically

If Ckbox = Yes; Mailsend1; else Mailsend2

here is what I have that curently works. SendTo is the field with the defined names to send to.

@Prompt([Ok];“Request Submitted”;“Your request has been submitted”);

@MailSend(SendTo;“”;“”;“New Update”;“Please click on the link to review the update.Thank You. “;””;[IncludeDoclink]);

@Command([FileSave]);@Command([FileCloseWindow])

Any help is appreciated!

Thanks!

Subject: Help with an @if statement please

@if(ckbox = “Yes”; @do(@Prompt([Ok];“Request Submitted”;“Your request has been submitted”); @MailSend(SendTo;“”;“”;“New Update”;“Please click on the link to review the update.Thank You. “;””;[IncludeDoclink]));@do(@Prompt([Ok];“Request Submitted”;“Your request has been submitted”); @MailSend(SendTo;“”;“”;“New Update”;“Please click on the link to review the update.Thank You. “;””;[IncludeDoclink]));@Command([FileSave]);@Command([FileCloseWindow])

Subject: RE: Help with an @if statement please

thank you very much to the both of you,

Although the file doesnt save and close, a bit confused now where the

@Command([FileSave]);@Command([FileCloseWindow]

should go

Didn’t know about the @do cmd…i was breaking my bones.

Thanks!

Subject: Help with an @if statement please

@If(Ckbox = “Yes”; @MailSend(SendTo;“”;“”;“New Update”;“Please click on the link to review the update.Thank You. “;””;[IncludeDoclink]);

@MailSend(SendTo;“”;“”;“Alternate Update”;“Please click on the link to review the update.Thank You. “;””;[IncludeDoclink]);

)

@Prompt([Ok];“Request Submitted”;“Your request has been submitted”);

@Command([FileSave]);@Command([FileCloseWindow])

I’m working on the assumption that Ckbox is the name of the “Yes”/“No” field.

Subject: RE: Help with an @if statement please

Kelvin just FYI,the only issue with your order of operation is @prompt does not always run in the exact order of the formula. In the format you have it written, if there is no sendto field and or the mailsend fails, the user would still be prompted with a message that says the request was submitted. In the format I wrote it, the mailsend would have to be a success in order to be prompted.