You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"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
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.
Activity
DrParanoya commentedon Jul 28, 2025
How would
breakbe different from just returning null or an empy string?And wouldn't it just end up returning null or an emtpy string?
kybe236 commentedon Jul 28, 2025
i didnt know you could return
kybe236 commentedon Jul 28, 2025
prob can be closed
DrParanoya commentedon Jul 29, 2025
{"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
kybe236 commentedon Aug 1, 2025
no like {return early} {this dosn't do anything}
DrParanoya commentedon Aug 3, 2025
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.