Forum Discussion
SimonPerkins
13 years agoCommunity Member
Can I prevent "NaN" from appearing in numerical entry?
Is there a way to do this? Am using conditions to handle which numbers ARE allowed and to display an error if invalid numbers are entered. But can't get it to stop letters etc from being entered/...
MichaelHinze
Community Member
It would be easier to help, if you can share your .story file (or the one slide) here.
Amanda-Gunning
7 years agoCommunity Member
Hi Michael
Please see attached.
Many thanks
Amanda
- MichaelHinze7 years agoCommunity Member
Have a look at the attached and see if that's what you wanted. I corrected some triggers and added some to calculate the total score.
- Amanda-Gunning7 years agoCommunity Member
Thanks so much Michael that has fixed it. The only thing I found was that if you only put some numbers in then total it the Nan is back! Do you know why that happens?
- MichaelHinze7 years agoCommunity Member
You could set the variables to a defined value to avoid "blanks". See attached a revised file.