-
Hello, i am progressing my berry experience (converting rules to berry). I have some berry code that works fine to replace a rule if i paste (and run) the berry code to the Berry Console.
This is the berry_rules.be:
I got the same error without the 2 var statements at the beginning (i added them after i got the error, but no success). Why does the code work if i cut/paste/run it in berry console without error and why do i get that syntax error if i try to load the scripts via load command? Thanks for any insights! Regards Rainer |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Doing a quick test with that function in a file, and doing a |
Beta Was this translation helpful? Give feedback.
I think that the issue is you using bad syntax for the first comment line. Using
#-
is a free-flow block comment spanning across lines until terminated with-#
, making your first line break the code.