getstring - EdgeIY/infiniteyield GitHub Wiki

Documentation

string getstring(<int> idx)

Note: int is a whole number

Description

Combines the arguments after index idx into one string. This is useful when you have a string argument that might include spaces.

Tip: Always make an argument that contains spaces your last argument

Example

--Note: This is just a snippet
["Function"] = function(args,speaker)
  print(getstring(1))  
end

Additional Notes

If we get args[1] and input Hello World! into our command, we only get Hello because IY sees the space and thinks World! is a separate argument. In the above example, getstring fixes this problem by combining the arguments after the first argument (which is every argument) into one string which results in the full message.

⚠️ **GitHub.com Fallback** ⚠️