Fandom

Foldit Wiki

Foldit Lua Function print

1,448pages on
this wiki
Add New Page
Comments0 Share

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 concatenated together. In V2, the arguments are separated by a <tab> character, which matches the Lua specification. To concatenate arguments together in V2, you should use the Lua concatenation operator, ".." (dot dot). See http://www.lua.org/manual/5.1/manual.html#2.5.4

Example Edit

local val=2
print("The value is "..val)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.