Recap - Status Report
Part of the Fundamentals section of Coddy's Lua journey — lesson 33 of 90.
Challenge
EasyCreate a comprehensive player status report that demonstrates your mastery of variables, data types, and output formatting. Declare three variables: playerName with the value "Shadow", totalScore with the value 4750, and isActive with the value true. Create a multi-line status report that displays each piece of information with descriptive labels using string concatenation and multiple print() statements.
Your report should display the player's name, score, and active status on separate lines, with each value clearly labeled and formatted professionally.
Try it yourself
-- TODO: Write your code here
-- Declare the three variables: playerName, totalScore, and isActive
-- Then create the multi-line status report using print() statementsAll lessons in Fundamentals
4Operators 2 Relational & Logic
Equality OperatorsRelational OperatorsThe 'and' OperatorThe 'or' OperatorThe 'not' OperatorShort-Circuit EvaluationTruthy and Falsy ValuesRecap - Simple Logic7Basic Conditional Logic
The if-then StatementThe if-then-else StatementThe elseif StatementRecap - Treasure Chest2Variables and Data Types
What is a Variable?NumbersStringsBooleansThe Value 'nil'The type() FunctionNaming ConventionsRecap - Character Profile5Basic Output
Printing LiteralsPrinting VariablesPrinting Multiple ValuesCombining Strings & VariablesThe tostring() FunctionInputCastRecap - Status ReportRecap - Till 1208String Manipulation Basics
string.len()string.upper & string.lowerstring.sub()string.rep()string.find()Recap - Format Username3Operators 1 Arithmetic & Conc
Arithmetic OperatorsModulo OperatorExponentiation OperatorString ConcatenationOperator PrecedenceRecap - Simple Calculations6Project: Character Stats Disp
Welcome MessageDeclare Character Stats9Functions Basics
Declaring a FunctionCalling a FunctionFunctions with ParametersFunctions with Multiple ParamsThe 'return' StatementRecap - Area Calculator