-
find and replace – to + and vice versa
Hello
I’ve gone through the forum looking for a way to find and replace the “+” or “-” symbol in the text layer above and switch to its opposite value. For example: if layer 1 shows “+7,” layer 2 should be “-7,” or layer 1 shows “-10,” layer 2 should be “+10.”
this code I have isn’t working:
thisComp.layer(index-1).text.sourceText.replace(/\u002B/gi,"-").replace(/\u002D/gi, "+");Thanks for your time everyone and thanks in advance for any and all solutions