# Variable missing from path

**URL:** <https://forum.kirupa.com/t/variable-missing-from-path/77769>\
**Category:** Uncategorized\
**Created:** [January 30, 2005, 12:21am UTC](https://forum.kirupa.com/t/variable-missing-from-path/77769 "2005-01-30T00:21:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![genetic](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@genetic](https://forum.kirupa.com/u/genetic)\
**Post date:** [January 30, 2005, 12:21am UTC](https://forum.kirupa.com/t/variable-missing-from-path/77769/1 "2005-01-30T00:21:53Z")

</div>

im trying to use a variable in a path and it ends up disappearing in the path.

im loading an image with  
“…/folder/”+var1+"/images/icon.jpg"

and in the output i get …/folder//images/icon.jpg

and im loading the variables with

this.load(“var.txt”);

var.txt contents:  
var1=1

any suggestions?
