Hi, I'm trying to do a math operation where the survey respondent starts with $x. A choice that the survey respondent makes should deduct $y from this initial amount (for simplicity, let x and y be 1). I am trying to show the remaining amount dynamically using Qualtrics Math operations or Javascript. However, during testing, the results of the math operations are showing up as blank. How can I fix this? Would really appreciate all the help, thanks!This is my code in Javascript:This is the logic I'm using in the question text for the math operation to display:This is the blank result I get during testing:
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.