https://bz.apache.org/ooo/show_bug.cgi?id=126272
--- Comment #5 from bmarcelly <[email protected]> --- mroe said : illegal: If <condition> Then <statement> Else <statement> the parser should give an error if /If/ and /Else/ in one line or it should simply stop at the comment. Look at Microsoft VBA doc on IF statement: https://msdn.microsoft.com/en-us/library/gg251599%28v=office.14%29.aspx The single-line form is accepted for if-then-else : "You can use the single-line form (first syntax) for short, simple tests. " This single form is widely used in Basic macros, it must be kept for compatibility. It is not described in the F1 help, but appears in the Wiki Basic Programming Guide. The statement works correctly if there is no comment in the same line. This restriction is minor, if you know it. -- You are receiving this mail because: You are the assignee for the issue.
