ok found the solution, but commands / syntax / description for command parameter /examples would be helpfull anyway
set_simple(1,virtual/signal-green,const(1));
if(compare(value_of_signal(max_signal(network(top,green))),<,const(25000)),set_simple(1,virtual/signal-yellow,const(1)));
if(compare(value_of_signal(max_signal(network(top,green))),<,const(1000)),set_simple(1,virtual/signal-red,const(1)));
set_simple(a >> a is slot number?
max_signal/min_signal explanation?
network(top/left... explanation?
How to input at green and output at red only?