Triple-double quotes does not work
I just try to make simple project.
Project in microcode, with this inside:
init = function()
a = 1
"""print('test');"""
"""a++;"""
print('a is: ' + a)
end
update = function()
end
draw = function()
end
Get this:
microScript 2.0 - beta
a is: 1
Are you trying to embed JS?
In that case it should look like this:
init = function()
a = 1
system.javascript("""
this.a++;
""")
print('a is: ' + a)
end
Console output is then a is: 2
I removed the 'print` because that one actually tried to print to my local printer :)
Details here: https://github.com/pmgl/microstudio/wiki/en-Advanced-microScript#embedding-javascript
and as usual more in the Discord ... just do it - JOIN DISCORD - that's an order ;)
@TinkerSmith - thanks!
Need to add this info to documentation/more programming languages/javascript
or quich reference/microScript cheatsheet
:)