I have created an personalised email in which we need to perform some calculation. The veriables are holding the data in string and trying to convert it into integer but for some reason the variable is giving me value 0 after conversion.
I am using "|int" filter for data conversion. Do ineed to use some other method not sure would need help with the same.
My second variable does come back as an integer type, with a value of 1. For what it's worth, I'm running my code in an email custom module. Could you tell me more about where specifically you're running your code? Or feel free to link me to your module so I can take a look.