# Radio Group - Assigning to a Number Variable

**URL:** https://community.evolveauthoring.com/t/radio-group-assigning-to-a-number-variable/1243
**Category:** General Help
**Created:** [August 9, 2021, 2:06pm UTC](https://community.evolveauthoring.com/t/radio-group-assigning-to-a-number-variable/1243 "2021-08-09T14:06:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![agorgon](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.evolveauthoring.com/agorgon/32/2105_2.png) [@agorgon](https://community.evolveauthoring.com/u/agorgon)
#### Post date: [August 9, 2021, 2:06pm UTC](https://community.evolveauthoring.com/t/radio-group-assigning-to-a-number-variable/1243/1 "2021-08-09T14:06:12Z")

</div>

I created a number variable, which I would like to use with a Radio Group component. I would like the radio answers to add 1 or 0 to my number variable. Unfortunately, the only variable I can select from the Variable drop-down is a string variable. Any ideas as to why I am unable to use my number variable?

 ![number-variable](https://canada1.discourse-cdn.com/flex031/uploads/evolveauthoring/original/1X/ee7fd41d23874ef04ef58734a4faa210dbccd8ce.jpeg)  
 ![component](https://canada1.discourse-cdn.com/flex031/uploads/evolveauthoring/original/1X/2bd9a8118353ab1a1ff1422b694cf71f759edbb4.png)

I am attempting to create a self-assessment that, once completed, presents the learner with a final score and offers feedback based on that score. If anyone has built something similar, please let me know which components you used.

Thank you for any suggestions.

---

<div class="post-metadata">

### Author: ![Andy\_Moorman](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.evolveauthoring.com/andy_moorman/32/314_2.png) [@Andy\_Moorman](https://community.evolveauthoring.com/u/Andy_Moorman)
#### Post date: [August 13, 2021, 12:04pm UTC](https://community.evolveauthoring.com/t/radio-group-assigning-to-a-number-variable/1243/2 "2021-08-13T12:04:10Z")

</div>

Hi,  
I’ve built something similar to what you describe using the slider input component. The user slides on scale rating like the below and submits:

1 = very false for me  
2 = somewhat false for me  
3 = somewhat true for me  
4 = very true for me

That then writes the number to a number variable which then totals up to provide feedback using a bunch of logic. The bottom line is only certain variable components can write to number, boolean, or string, and radio will not write a number.

Take a look toward the bottom of topic 1 in this course: [https://juvolearningsolutions.evolveauthoring.com/courses/5ef45fb220dcc2481c48a361/preview/index.html?isShared=true](https://juvolearningsolutions.evolveauthoring.com/courses/5ef45fb220dcc2481c48a361/preview/index.html?isShared=true)
