using IF/ELSE statement
Posted: Tue Jun 24, 2014 9:52 pm
Hi,
I'm trying to write a simple statement to limit my calcium current to -3 mA/cm2...what's wrong with my code?
Also, it was working perfectly fine until I added the last line (below the comment S.D. added....)
It is giving a syntax error at this line.
BREAKPOINT {
SOLVE states METHOD cnexp
A = getGHKexp(v)
icacalc = gcalbar * m*m*m * (4.47814e6 * v / T) * ((cai/1000) - (cao/1000) * A) / (1 - A) : S.D. changed ica to icacalc
: S.D. added the below to limit ica from cal to icarange.
if(icacalc < 3 && -1*icacalc < 3) ica = icacalc else ica=-3
}
I'm trying to write a simple statement to limit my calcium current to -3 mA/cm2...what's wrong with my code?
Also, it was working perfectly fine until I added the last line (below the comment S.D. added....)
It is giving a syntax error at this line.
BREAKPOINT {
SOLVE states METHOD cnexp
A = getGHKexp(v)
icacalc = gcalbar * m*m*m * (4.47814e6 * v / T) * ((cai/1000) - (cao/1000) * A) / (1 - A) : S.D. changed ica to icacalc
: S.D. added the below to limit ica from cal to icarange.
if(icacalc < 3 && -1*icacalc < 3) ica = icacalc else ica=-3
}