-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
'If' statements additions #6605
Comments
I'm strongly against adding multiple conditions in one line. However, as a substitute, perhaps the following?
|
As far as the not needing |
That would work as well but I really don't see why multiple conditions in one line is bad |
It's very difficult for the parser to parse (very long reload times) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I think the mid-way split looks messy and I don't like it. Maybe we could see if there's a nicer way to support this within check/switch. |
Suggestion
When making 'or' or 'and' conditions in Skript you do something like this
This is great and all until you need an 'or' and an 'and' in one condition, this forces you to make a pyramid of doom or do something similar to this
I understand that Skript cannot use 'and' and 'or' for that because lists already use that syntax
However, Skript doesn't use
|
or&
so that can be used to identify and / or conditions. Example:And it would be nice if you could directly do "if true:"
This is a thing in almost all programming languages because it makes sense, a condition is true or false and false means not to continue execution and true is the opposite
Why?
It will really clean up some code in specific scenarios where you want multiple and / or in conditions
The 'true' thing would just be nice to have since it's really not fun to switch from something like Java to Skript and always forgetting "is true"
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: