#How do I set a certain character in a string?
1 messages · Page 1 of 1 (latest)
split your string at "" and set the nth element to whatever then join your list with ""
nth element?
n being the number?
ah
wait so what does splitting "" mean? does that mean splitting every character into a list?
tried doing that and I got this error
{_steal::%{_goal}%}
what no
I need to get the #th element of something
%{_goal}% doesn't exist in {_steal::*}
Wait why is it in your line then
You can use the index
like?
Like this
this is the same thing
you forgot a space after the variable
Wait the syntax is n th not nth?
i thought it was
thats weird
use this
I assume you set {_steal::*} to yourString split by “”?
That should give you {_steal::1}, …, {_steal::n}