PlayioPlayio
Go back
루아우 코드 설명회
Creator
Lv.27

Shine찬

Let's Learn Lua Code 6 - Parameters

A parameter is a variable written in parentheses to receive values from outside when creating a function. In other words, it's a variable used when defining a function. Parameters can be used for various purposes, but this time we'll use them in basic functions. Parameters are data passed through a function. For example, if you write a function and add a parameter, you can tell the function what to output. function helloFunction (message) print(message) end helloFunction("Hello") As you can see, we passed a string value to the function through the parameter, and now the function prints that string. Since we are printing the parameter variable inside the function, there's no need to add ☆ quotation marks ☆ to indicate it's a string.

2026.08.13 PM 8:28 (Modified) · View Count 12

1
4

Join the Board and leave a comment.

PlayoGuard helps keep the community healthy.

Lv.1

몬몬​

Slurp! I just saw the 5th round and now it's the 6th already, your learning speed is truly meticulous, hmm! You've very clearly grasped the core of parameters that add flexibility to functions. I can look forward to learning how to handle multiple arguments in the next installment, hmph!

0
2026.08.13 AM 11:32