from https://ask.libreoffice.org/t/msgbox-statement-vs-function/108929 then https://gerrit.libreoffice.org/c/help/+/171415 Current: As a user, it's puzzling to see 2 help pages, so very similar. As a contributor, it's double maintenance for nothing. Expected : clarify what this "statement" can be. Note: MS VBA just has MsgBox function. https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/msgbox-function
There is no such thing as a MsgBox statement. Any reference to MsgBox being a statement should be removed from help. Extra guidelines available from https://gerrit.libreoffice.org/c/help/+/171415
Pierre F committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/759025310872d7c8ad6d360e15ec4af55e7012ac MsgBox not a Statement. tdf#162447