So I have a stringvalue, and I don't want the script to move on until that value isn't blank. the stringvalue is called winner. I have:
msg.Value = "Game in Progress" until winner ~= "" or " "
It's in a while true do loop.
Syntax for repeat
loops is like this:
repeat [code] until [conditions]
To use it to your advantage, you would do:
msg.Value = "Game in Progress" repeat wait() until winner ~= "" and winner ~= " "
_______________________________________________________________________________
until winner ~= "" or " "
should be: until winner ~= "" and winner ~= " "
_______________________________________________________________________________
You can also use the #
operator, which returns the length of the given array or string.
Use this to determine if 'winner' isn't a blank string.
msg.Value = "Game in Progress" repeat wait() until #winner > 0