Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

nested sustitute?


This topic is 7854 days old. Please don't post here. Open a new topic instead.

Recommended Posts

is it possible to nest the substitute function? i'd like to do something like this:

textinputfield: "Please substitute aaa for bbb."

textoutputcalc: "Please substitute apples for oranges."

i could do this with two calc fields like this:

textoutput1 = Substitute(textinput, "aaa", "apples")

textoutput2 = Substitute(textoutput1, "bbb", "oranges")

but that seems not particularly elegant, especially since each additional substitution would require an additional calc field.

Link to comment
Share on other sites

There is a limit to the number of nested substitutions, the limit depends on the version you use. Either way, if you hit the limit you can split the calculation between two or more calculation fields exactly the way you proposed in your first post.

Link to comment
Share on other sites

This topic is 7854 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.