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

[[local a = 3 local b = 1 print(-ab-)]] Purpose = output -> 31 ||How?

Asked by
EteraW 77
5 years ago

I want to make box A Text = 3 and box B Text = 1 and box C = AB = 31

I try with print() but it not work

local a = 3
local b = 1
print(ab)

Output

nil

I think ab is not a and b

It is a new variable

So please help me!

1 answer

Log in to vote
1
Answered by
Prestory 1395 Moderation Voter
5 years ago
Edited by DeceptiveCaster 5 years ago

A simple way to do this would be

local a = 3
local b = 1
print(a .. b)
0
omg! thank you! EteraW 77 — 5y
0
NP have fun! Prestory 1395 — 5y
0
Bad answer. DeceptiveCaster 3761 — 5y
Ad

Answer this question