When/why are square brackets, vs curly brackets, vs as double quote used for text inside shape?

+1 vote
asked Oct 13, 2017 in To be sorted by rd27 (530 points)
edited Oct 9 by rd27

Just wondering. When/why are square brackets, vs curly brackets, vs as double quote used for text inside shape?

It seems that all of this is valid

rectangle firstObject [ text -- more text ]

rectangle "My Second Object" as o2

rectangle second as " test "

And this is valid

object firstObject {

text

--

more text

}

But this is not valid

rectangle firstObject {
text
}

And this is not valid

object firstObject [

text

--

more text

]

Thanks!

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...