Announcement

Collapse
No announcement yet.

line continuation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • line continuation

    How do I break a line up into two rows?

    Ex.
    if (cond1 && cond2 && cond3 && cond4 && cond5) {whatever}

    How do I make the above line into two line using a line continuation character?

    I tried the following, but it does not work:

    if (cond1 && cond2 && cond3 _
    && cond4 && cond5) { whatever }

    Thank you.

  • #2
    How do I break a line up into two rows?

    Ex.
    if (cond1
    && cond2
    && cond3
    && cond4
    && cond5)
    {whatever}

    is valid

    Comment


    • #3
      If EFS/Java Script as with C, Java, C++, etc, white spaces (speaces, tabs, returns etc) are ignored. So as long as you don't use a termination character (eg: ; or }) then one command can span many lines:

      If (
      nMyVar
      ==
      100
      ) {

      for example is valid...if fairly hard to read.

      Garth
      Garth

      Comment


      • #4
        Thank you!

        Comment

        Working...
        X