# Set value of variable to false

**URL:** <https://forum.kirupa.com/t/set-value-of-variable-to-false/227187>\
**Category:** Uncategorized\
**Created:** [May 28, 2007, 8:15am UTC](https://forum.kirupa.com/t/set-value-of-variable-to-false/227187 "2007-05-28T08:15:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warheart](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@Warheart](https://forum.kirupa.com/u/Warheart)\
**Post date:** [May 28, 2007, 8:15am UTC](https://forum.kirupa.com/t/set-value-of-variable-to-false/227187/1 "2007-05-28T08:15:07Z")

</div>

Hello all,

I’m not too sure on how to describe this without confusing everyone but basically, i have:

prevslot = “jslot”+historynum+“full”;

historynum is a dynamically gathered number from another part of my code. it will be like 1 or 2 or 3 etc.

The problem is that i want to like set the value of that variable to false, so for example if historynum was equal to 1, the value of prevslot would be jslot1full. I need to set the value of prevslot to false, i tried prevslot = false; but obviously that just sets prevslot to false, not the value of prevslot. Is there any way to set the value of prevslot to false?

-Grant.
