First Script Exemple in the documentation - print “Hello Wor
  • renaud
    activ8 member
    Posts: 55
    Joined: Wed Dec 10, 2008 8:02 pm
    Location: Paris
    Contact:

    First Script Exemple in the documentation - print “Hello Wor

    by renaud » Tue Dec 16, 2008 9:24 pm

    Hello,

    I'm doing the tutorial about scripting in the Modul8 documentatiion.

    So I create a new module and paste this text in the init() layer

    print “Hello World!”

    and I hav an error when I restart the module :

    SyntaxError: invalid syntax
    print Hello World!
    ^

    What I'm doing wrong?

    best,

    reno-
  • User avatar
    Anome
    activ8 member
    Posts: 63
    Joined: Sun Sep 02, 2007 11:50 am
    Location: paris
    Contact:

    by Anome » Tue Dec 16, 2008 11:15 pm

    try

    Code: Select all

    print "Hello World!"


    dont use the ” character, it s rather " or '
    Image . . . . Image
  • User avatar
    sigmasix
    master
    Posts: 1224
    Joined: Thu Dec 02, 2004 2:12 pm
    Location: gva | switzerland
    Contact:

    by sigmasix » Wed Dec 17, 2008 10:07 am

    Yes, you should always avoid copying and paste text from the documentation! Some ASCII characters might have been converted to their typographic equivalent...
  • renaud
    activ8 member
    Posts: 55
    Joined: Wed Dec 10, 2008 8:02 pm
    Location: Paris
    Contact:

    by renaud » Wed Dec 17, 2008 11:07 am

    Hum Hum ... It's perfexct ...

    It's so easy than I would have been able to find it alone ..

    best,

    reno-

Who is online

Users browsing this forum: No registered users and 6 guests