If this is the solution, then you're welcome. local ExampleVar = 2 print("Code:", ExampleVar, "Example") -- This will print: Code: 8 Example Commas are used to divide variables You can also do this: local ExampleVar = 2 print("Code:" .. ExampleVar .. "Example") -- This will print: Code:8Example
Are you using the visual studio that is shown in the video? I was using Visual Studio Code 2022 and for whatever reason I was unable to recreate these steps.
Couldn't find how to print them inside of a sentence, I only found people explaining how to print them at the end, so thanks a ton for this.
If this is the solution, then you're welcome.
local ExampleVar = 2
print("Code:", ExampleVar, "Example") -- This will print: Code: 8 Example
Commas are used to divide variables
You can also do this:
local ExampleVar = 2
print("Code:" .. ExampleVar .. "Example") -- This will print: Code:8Example
lua main.lua doesnt print anything on my side im so frustrated i looked all the turorials please help me
Are you using the visual studio that is shown in the video? I was using Visual Studio Code 2022 and for whatever reason I was unable to recreate these steps.
Also make sure you are saving the file every time you make changes. The terminal is reading the file at its last saved state.
thank u aqua
print deeznutz
Will do