# Loaded var comparing probs

**URL:** <https://forum.kirupa.com/t/loaded-var-comparing-probs/31315>\
**Category:** Uncategorized\
**Created:** [September 21, 2003, 9:27am UTC](https://forum.kirupa.com/t/loaded-var-comparing-probs/31315 "2003-09-21T09:27:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenna](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jenna](https://forum.kirupa.com/u/jenna)\
**Post date:** [September 21, 2003, 9:27am UTC](https://forum.kirupa.com/t/loaded-var-comparing-probs/31315/1 "2003-09-21T09:27:53Z")

</div>

Hey,…  
i want to compare two numbers loaded into my movie with:

loadVariablesNum(“counter.asp”, 0);  
the file counter.asp -\> this includes “visiter=&99”

loadVariablesNum(“winnummer.txt”, 0);  
the file winnummer.txt -\> this includes “winnum=&100”

if the numbers are equal i want it to go to frame 11  
else i want them to go to frame 10,…  
did it like this:

if (Number(winnum) == Number(visiter))  
{ gotoAndStop(11);}  
else { gotoAndStop(10);}

but this doesn’t work,… anyone who can help me out with this???

basicly i’m asking how do i compare 2 loaded vars into AS ?

greetz
