If Then \nl – fail?

About Monkey 2 Forums Monkey 2 Development If Then \nl – fail?

This topic contains 4 replies, has 4 voices, and was last updated by  Danilo 2 years, 9 months ago.

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

    therevills
    Participant

    The following does not compile, when doing an If Then newline :

     

    [/crayon]

    Is this as designed or will it be fixed later? On some of the code I am converting over it takes me a couple of double takes to see what is the issue.

    #1203

    Mark Sibly
    Keymaster

    ‘Then’ was originally intended to be for ‘one liner’ Ifs only, but given it turned out to be optional I have no problems supporting it for ‘block ifs’ too if there are no complaints. This is monkey1 behaviour too.

    #1205

    therevills
    Participant

    I don’t mind either way, could the error message be more clear what the issue is?

    It’s probably more consistent to have ‘Then’ for block ifs as well as one liners ifs.

    #1206

    nobuyuki
    Participant

    As long as we can omit “then” for block-ifs I’m cool either way.

    #1208

    Danilo
    Participant

    Random thoughts and ideas – Posting #4

    [/crayon]
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.