Version 0.0.1

Term 1 Assignment 07: Decisions by Innes

W3Schools If Else documentation

Good reference for if / else statements and innerHTML.

JavaScript: ! = not, && = and, || = or
Luau: not = not, and = and, or = or

Example input output code

JavaScript:
let myHour = 20;
if (myHour < 18) {
    let myGreeting = "Good Day";
}

Luau:
local myHour = 20
if myHour < 18 then
    local myGreeting = "Good Day"
end

Example working code

Change the numbers to test the decisions.


...
...
...

Luau Code Editor

Edit the Luau code and press Run Luau. The numbers are read from the inputs above.


Luau Output