• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Problem in actionscript

Problem in actionscript 13 years 4 months ago #12173

  • ammostro
  • ammostro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello,

i have a function, called by another function. In the first function I give de value
vdt, this has de value 0. When I come in de function , vdt = 0.
Then i come on the If statement, dont taken the If vdt = 0, but vdt gets the value 1 ?? and he takes the else function?

Anyone who sees what I am doing wrong?

 
function berekenformule(bedrag,dt,vdt,jkp)
{
         alert('vdt in de functie = ' + vdt );             <----- vdt 0
	  var a = Math.pow((1 + (jkp/100)),(1/12));
	  var b = a - 1;
	  c = a;
	  d = Math.pow(c,-(dt));
	  e = 1 - d;
	  f = (b / e);
	  g = (bedrag * f);
         alert('vdt is nog steeds ' + vdt);                <------ vdt 0
	if (vdt = 0)
         {
             alert('zit in de if met vdt = 0');
             (document.getElementById('voordeeltarief').value) = (Math.round(g*100)/100);
         }		
	else {		
             alert('zit in de if met vdt = 1 en de waarde = ' + vdt); // <<---Here is the value vdt 1, but I havent changed it 
             (document.getElementById('normaaltarief').value) = (Math.round(g*100)/100);
              }		
}
 
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!