# Creating a grade from a variable

**URL:** <https://community.thunkable.com/t/creating-a-grade-from-a-variable/2201680>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 2, 2023, 8:14pm UTC](https://community.thunkable.com/t/creating-a-grade-from-a-variable/2201680 "2023-01-02T20:14:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 2, 2023, 9:58pm UTC](https://community.thunkable.com/t/creating-a-grade-from-a-variable/2201680/2 "2023-01-02T21:58:50Z")

</div>

This question came up recently… please see this post and let me know if it answers your question:

> [@How to calculate this formula and display percentage?](https://community.thunkable.com/t/how-to-calculate-this-formula-and-display-percentage/2199065/8):
>
> You’re welcome. Your percent—\>grade question is typically solved with an if/else if/else if… set of blocks. But it can also be solved with a series of stacked if blocks. Create two variables called percent and grade. Set percent to the value you calculated (such as 71%). Then set up this (I’m using sample values… your actual ranges may be different): Edit: Oops! I originally had these in the wrong order. It should be: If percent \<= 100 then set grade to A If percent \< 90 then set grade to B …

---

_[View the full topic](https://community.thunkable.com/t/creating-a-grade-from-a-variable/2201680)._
