I need to create a function that will search for strings and replace the characters in those strings with dedicated integers.
As an example, I want “0” to always equal 48, “1” to always equal 49 etc. So if the script sees the string “10”, it would read that and populate a separate parameter with the value “4948”.
My question is, is this what dictionaries can be used for? Secondly, how would that work? I have done a small test as you can see, but I cant get the value to populate with what I need, I just receive nulls. Could anyone point me in the right direction? I am presuming the “Key” input is looking for a single index value basically, but how would you combine multiple values as I need to?
Thanks so much!