When Neuron_1 is stimulated with an IClamp, Neuron_1 depolarizes Neuron_2.
When Neuron_3 is stimulated with an IClamp, Neuron_3 also depolarizes Neuron_2.
I am trying to create the following conditional statement:
If Neuron_1 fires at Neuron_2, Neuron_2 fires back to Neuron_1.
If Neuron_3 fires at Neuron_2, Neuron_2 fires back to Neuron_3.
I created the following “if” statement:
Code: Select all
Access Neuron_2_axon
if(Neuron_1_soma.v > 0) {
nclist.append(new NetCon (&v(1), syn1, -20, 1, 1)) // syn1 belongs to the dendrite of Neuron_1
}
if(Neuron_3_soma.v > 0) {
nclist.append)new NetCon (&v(1), syn3, -20, 1, 1)) // syn3 belongs to the dendrite of Neuron_3
}