Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isnt print working like its meant to?

Asked by 6 years ago

I have the script:

print("Hello World") print("1+1")

for some strange reason it doesnt do math and add 1 and 1 together

1 answer

Log in to vote
0
Answered by
tobhyyy 26
6 years ago

"hi" is a string so itll come out as plain text

If you where to do:

print(1+1)

It would print 2 because it isnt a string, its an integer.

1
Thank yous fat_nerd1 5 — 6y
Ad

Answer this question