I am attempting to take 2 variables, perform math on them and then output them as a new 3rd variable. Here's the basic logic I attempting to do:
var A1 = [+ditto_iteration+]
var B1 = [+gallery_currentPage+]
var C1 = (B1-1)*3+A1+1
Then I need to take the value of the variable C and output in some HTML like so:
<a href="variable C1 here">link</a>
So to clarify, I've got some programming that will output the value of [+ditto_iteration+] on page load. Same with [+gallery_currentPage+]. I just need to be able to take the variable values of A1 and B1, perform the math as shown above and then replace a variable in the URL (in this case C1) with the resulting value of the math operation.