Your need to write into this. This is a special case, as your can force a resistor to behavioral resistor with R=<formula>
.
Without R=, 1*if(time>100m,1,10) is assigned to <resistance>
, which is an instance parameter not suppose to change during simulation.