multi line statement?

About Monkey 2 Forums Monkey 2 Programming Help multi line statement?

This topic contains 4 replies, has 3 voices, and was last updated by  dmaz 2 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3560

    skn3
    Participant

    I spent a good 20 minutes searching google/forum to try and find this, without luck!

    What is the syntax to split a line onto multiple lines?

    #3561

    Mark Sibly
    Keymaster

    Lines can currently only be split after ‘[‘, ‘(‘ or ‘,’ tokens.

    #3576

    skn3
    Participant

    Ah ok thanks. Personally I think this is a good idea to limit it by various tokens instead.

    The reason for asking was that ted2 seemed to have a hardcoded scroll width and I had an if statement that exceeded this width. I tried to split it onto multiple lines but couldn’t.

    So I guess this

    #3722

    dmaz
    Participant

    what about ‘+’ for string formulations?

    #4040

    dmaz
    Participant

    wait why can’t you just ignore statement enders while inside () and []? maybe I haven’t thought this through but don’t those always imply the same statement? The nice thing about this is then you don’t need to worry about any others like commas, right?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.