Code: Select all
startshape badness
shape badness {
switch (randint(3)) {
case 1:
SQUARE [ ]
case 2:
CIRCLE [ ]
else:
TRIANGLE [ ]
}
}
Code: Select all
Error in bad.cfdg at line 9 - syntax error
Thanks,
— Scott
Moderators: MtnViewJohn, chris, mtnviewmark
Code: Select all
startshape badness
shape badness {
switch (randint(3)) {
case 1:
SQUARE [ ]
case 2:
CIRCLE [ ]
else:
TRIANGLE [ ]
}
}
Code: Select all
Error in bad.cfdg at line 9 - syntax error
That works; thanks.MtnViewJohn wrote:It is a bug in the parser. 'else:' is being parsed differently than 'else :'. Just put a space before the colon until I fix it.