Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Layout for if()

if( condition,

    Statement 1 ,

// else

Statement 2 )

Note that when a statement in an if() clause is more than 1 line, wrap them in a do() e.g.:

Example

Code Block
// Example code layout 
if( condition,
    do(
        Statement 1,

        Statement 2,

        .... Statement n
    ),

// else
    Statement A
)


Note that closing brackets should always line up with the start of the statement (see the do() and if() statements above)

...

Note that the _NULL statement is currently required

Example Layout

...