# Difference between codes

**URL:** <https://forum.choiceofgames.com/t/difference-between-codes/11574>\
**Category:** ChoiceScript Help\
**Created:** [August 26, 2015, 2:55pm UTC](https://forum.choiceofgames.com/t/difference-between-codes/11574 "2015-08-26T14:55:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [August 26, 2015, 3:30pm UTC](https://forum.choiceofgames.com/t/difference-between-codes/11574/4 "2015-08-26T15:30:48Z")

</div>

Do you still remember

> [@Temp Text not working](https://forum.choiceofgames.com/t/temp-text-not-working/11474/6):
>
> If you’ve already got a permanent variable (the variable is permanent, not the value) you don’t need a temp variable by the same name. It should work fine without it. Edit: And it does. Just tested it. Choicescript\_stats.txt \*if rep = 0 \*set rep\_text "Neutral" \*goto chart \*elseif rep = 1 \*set rep\_text "Positive" \*goto chart \*elseif rep = 2 \*set rep\_text "Very Positive" \*goto chart \*elseif rep = 3 \*set rep\_text "Amazing" \*goto chart \*elseif rep = 4 \*set rep…

That one worked without a \*temp variable, so these two examples should work without them too.  
and

> [@Temp Text not working](https://forum.choiceofgames.com/t/temp-text-not-working/11474/8):
>
> Just a note: If you have a \*temp and a \*create variable with the same name I believe the \*temp one always takes precedence.

In the case of the ‘health’ variable the order of precedence isn’t an issue because you’ve got two different variables (Health\_text and health\_text), but with the ‘heat’ variable it is because you’ve got a temporary and a permanent variable going by exactly the same name.

---

_[View the full topic](https://forum.choiceofgames.com/t/difference-between-codes/11574)._
