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
Would it be possible to add conditional assignment to line decorators? For example, I can do option 1: fcolor=message\match "<%w*>" message=message\gsub "<%->", fcolor if fcolor
Or option 2: message=message\gsub "<%->", fcolor if (->fcolor=message\match "<%w*>" )!
But option 2 creates an anonymous function. The following would be better:
message=message\gsub "<%->", fcolor if fcolor=message\match "<%w*>"
compiled to the same output as if fcolor=message\match "<%w*>" then message=message\gsub "<%->", fcolor
The text was updated successfully, but these errors were encountered:
Would it be possible to add conditional assignment to line decorators? For example, I can do option 1:
fcolor=message\match "<%w*>"
message=message\gsub "<%->", fcolor if fcolor
Or option 2:
message=message\gsub "<%->", fcolor if (->fcolor=message\match "<%w*>" )!
But option 2 creates an anonymous function. The following would be better:
message=message\gsub "<%->", fcolor if fcolor=message\match "<%w*>"
compiled to the same output as
if fcolor=message\match "<%w*>" then message=message\gsub "<%->", fcolor
The text was updated successfully, but these errors were encountered: