Calculate a new variable based on a number extracted by a text parser

Hi all,
I’m using a text parser to exclude a specific price from a text, and it works fine:

In the next step, I want to set a new variable based on a calculation involving the excluded price:

Unfortunately, the calculation fails because the input doesn’t seem to be working…

Any ideas ?

Hey there,

your formula is not technically correct. It looks like you wrote it instead of using the correct symbols. For example - is actually {{-}}, * is {{*}}. Also, as you have it, parseNumber is just a text you have and not the actual function. Try selecting everything you need from the menu instead and see the difference yourself.

Ok, I added a step before, just parse the number into a new variable:


that seems to be working well:

In the next step I want to perform the calculation with the new variable created before, but the input is empty, nothing gets calculated:


any idea?

thank u :slight_smile:

You still need to delete these invalid characters, and re-select them from the variables panel.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.