Log In  


The print() command returns the pixel width of the string that was printed.
However, if the string contains the \^d code for frame delay, a delay of anything other than 0 returns nil for the pixel width.

input

x = print("\^d0hello")
print(x)

x = print("\^d1hello")
print(x)

output

hello
20
hello
[nil]
2



[Please log in to post a comment]