Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mata syntax: single line if statements

    what is the syntactic rule that underlines the following behaviour (compile error in the first and fourth if stmts but not the second or third):


    . mata: if (1==1) x=1;

    unexpected end of line
    <istmt> incomplete
    r(3000);

    . mata: if (1==1) x=1;;

    . mata: if (1==1) x=1; x;
    1

    . mata: if (1==1) x

    unexpected end of line
    <istmt> incomplete
    r(3000);



  • #2
    See the explanation here.

    Comment

    Working...
    X