[Suggestion] A way to return erly
smth so you can return early like {player.get_item(38) != null && player.get_item(38).name != "Elytra" ? break : ""}
How would break be different from just returning null or an empy string?
And wouldn't it just end up returning null or an emtpy string?
i didnt know you could return
prob can be closed
i didnt know you could return
{"hello"}
^ this expression returns the string "hello"
every single starscript expression returns something
the empty string at the end of your example gets returned when your boolean expression results in false
no like {return early} {this dosn't do anything}
no like {return early} {this dosn't do anything}
~~Every expression ({}) returns something. There is no way around that!!!
And even if for some reason this was implemented, it would most likely also just return null.
And you can already return null.~~
After reading your last message again, you can just use a conditional statement.