total noob looking for help barValues = parseInt(a.get("bar1_value"))+parseInt(b.get("bar2_value")); var pilotGun = GetAttribute(wrds[2],"Pilotgunnery"); pilotGun = parseInt(pilotGun); if(isNaN(pilotGun))pilotGun = 4; var l = MakeCheck(charIds[wrds[2]],w,d,pilotGun+barValues,arc); var pilotGun = GetAttribute(wrds[2],"Pilotgunnery"); if i read this right is pulling the number from the Pilotgunnery attribute on the character sheet pilotGun = parseInt(pilotGun); this is what it got from pilotgunnery into a integer if(isNaN(pilotGun))pilotGun = 4; this has been setting the var back to 4 what is it suppose to be doing i think it is suppose to set pilotgun to 4 if pilot gun is a nul field??? what its suppose to do is get the pilot gunnery value and add it to the 2 bar values its always reading as 4 no matter what pilotgunnery attribute is. HELP!