Wikia

Foldit Wiki

Foldit Lua Function print

Comments0
668pages on
this wiki

print Edit

Function: void print([arg1,...,argN])
Description: Print values to the output window and log file.
V1 Function Name: print
More Information: Details


Remarks Edit

The print function in Lua V2 is slightly different than the print function in V1. In V1, a comma separated list of arguments was concatinated together. In V2, the arguments are separated by a <tab> character, which matches the Lua specification. To concatinate arguments together in V2, you should use the Lua concatination operator, "..". See http://www.lua.org/manual/5.1/manual.html#2.5.4

Example Edit

local val=2
print("The value is "..val)
Advertisement | Your ad here

Photos

Add a Photo
3,456photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki