jairmanquero,
OK so a couple of things I would suggest from your message
You say you have a variable name Total that stores a value of 2.5
but in your script you have total not Total . 2 different variables! UR script is case sensitive so keep that in mind when using variables.
your also missing the closing Quotation marks after Test
It also looks as though you might have an extra “ ) ” in your error message shown above (right after …title=to_str(total)’)’ < this one here) this may might be closing the popup script command creating an error with the rest of the script written after it.
Expanding the advanced view of the script (arrow at the bottom of that error message window) may give you better details.