Author Topic: [Solved] Strings  (Read 659 times)

Are there string functions in Torque? Things like you would find in the Lua String Library for instance. I can't seem to find any documentation on it.

Also, just as an example, let's say I have this:

Code: [Select]
%foo = "Hello World!";
And I want to replace every occurrence of the letter o with something else.
« Last Edit: October 11, 2015, 07:34:46 AM by Dr.Tyler O. »

There's some documentation on functions dealing with strings HERE.

For the example you'd do
Code: [Select]
%foo = "Hello World!";
%foo = strReplace(%foo, "o", "a");
That'd turn "Hello World!" into "Hella Warld!".

There's some documentation on functions dealing with strings HERE.
Thank you

Look in the pinned topics for a file named "Appendix A - Torque References".