We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local CurrentHour = tonumber(os.date("%H")) local Name = "SpinnySpiwal" local TimeWelcome = if CurrentHour <= 6 and CurrentHour <= 12 then "Morning, " .. Name elseif CurrentHour >= 12 and CurrentHour <= 19 then "Afternoon, " .. Name elseif CurrentHour >= 19 then "Evening, " .. Name else "Error - Unknown Case" print(TimeWelcome)
local CurrentHour = tonumber(os.date("%H")) local Name = "SpinnySpiwal" local TimeWelcome if CurrentHour >= 6 and CurrentHour <= 12 then TimeWelcome = "Morning, " .. Name elseif CurrentHour >= 12 and CurrentHour <= 19 then TimeWelcome = "Afternoon, " .. Name elseif CurrentHour >= 19 then TimeWelcome = "Evening, " .. Name end print(TimeWelcome)
The text was updated successfully, but these errors were encountered:
Agreed. I think this is a good feature. It allows Prometheus to obfuscate more LuaU code.
Sorry, something went wrong.
Implementing this would require to rewrite some of the code.
The following files would definitely need to be modified: visitast.lua compiler.lua parser.lua
There may be more.
I currently don't have time to work on this, but I would accept a pull request if somebody wanted to work on this.
No branches or pull requests
I Suggest adding Ternary Operators support for the following reasons:
For example, Ternary operators in Luau:
However, The above code snippet is much more compact compared to it's Lua 5.1 alternative:
Thank you for taking the time to read through my suggestion.
The text was updated successfully, but these errors were encountered: