Why double prompts and promtp to save?

When conditions fit the criteria my QuerySave is prompting twice and then I get a prompt to save.Without condition violation it saves fine. What’s wrong with my code or design?

Action button to save-

FIELD SendTo:= NODFrom;

FIELD Orig:=Orig;

FIELD SaveOptions:= “1”;

@SetField(“NODTo”;Orig);

@SetField(“NODFrom”;@UserName);

@Command([MailSend]);

@PostedCommand([FileSave]);

@PostedCommand([FileCloseWindow])

My QuerySave -

Sub Querysave(Source As Notesuidocument, Continue As Variant)

If ( source.FieldGetText( "Disp_rad" ) <>"") And ( source.FieldGetText( "Signature1" ) = "")  Then

	Messagebox( "You must sign this document before returning.")

	continue = False

	

End If

End Sub

Thanks in advance.

Subject: because your are not testing your FileSave…

Try:@If(@Command([FileSave]); @Command([FileCloseWindow]); “”)

Subject: RE: because your are not testing your FileSave…

Thanks for your help. This fixed my prompt to save but I still get 2 consecutive prompts to Sign the document if it’s not already signed.Any other ideas?

Subject: Then Try:

Since you don’t want to mail it either:

@If(@Command([FileSave]); “”; @Return(“”));

@Command([MailSend]);

@Command([FileCloseWindow])

Subject: That did it! Thanks

I don’t quite understand the logic but it works great. I’ll figure it out with time.Thanks for your help!