How would I combine a String with a Boolean?

I just to know how I would combine a string
I’ve tried

For Example:

local t = "test"
local v = true
local e = t..v
print(e)

but it returns with an error like so
image

1 Like

you could use this

local boolean = true
local string = "Current state is: "

local combinedstring = string+tostring(boolean)
print(combinedstring)
1 Like

Ok it worked! I had to change the ‘+’ to ‘…’

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.