This is not the purpose of If / Then / Else syntax in Eldo. The condition of the IF statement needs to be resolved at elaboration, not at DC or during any other analysis. So you cannot test the voltage of the pins of the circuit.
The following is accepted by Eldo:
* Testing if
.subckt res X Y param: ro=10K
R1 X Y ro
.param ro= 5K
v1 0 1 dc 1
X1 1 0 res
.extract dc i(v1)
Thank you very much for your response, alain_wittmann
So you mean that there is no way to read the signal and use it for if-condition?
Is there anyway that perhaps I can assign the signal to "param" or sth and then I use the param?
I'd rather not use Verliog-A as it seems to be too slow in Eldo!
R1 X Y VALUE=valif(V(X)-V(Y)) > 1, 5k, 10k)
Have you tried that?