-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
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
[BUG] Luau - Ternary operators not supported #82
Comments
I didn't even know these were a thing in LuaU |
Well it's relatively new you can say, you can check https://luau-lang.org/syntax#if-then-else-expressions |
Some ternary operators don't use if and then local e = a and h or l -- If a is true, e is h, if a is false, e is l |
Those ternary operators are already native lua, and is semi-ternary operator (it isn't technically), since if This report is about Luau actual ternary operators not being supported |
A lot of the new syntax are also not supported at the moment, for example: String interpolation and type annotations |
related to #114 |
Describe the bug
It looks like ternary operators (
x = if condition then true else false
) aren't supported:Expected behavior
Ternary operators for luau to be supported and not error.
To Reproduce
Steps to reproduce the behavior:
If your problem is a non-working obfuscated file, please also include a minimal source code example, your config file as well as the output file that you got.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Windows 11 x64, Lua 5,1
The text was updated successfully, but these errors were encountered: