so far all is clear, but it does not work on my side.
it seems that after the switch the %1 cant be accessed anymore:
<settings name="themevars"
slideshow-show-panos-order="1,3,7,4,9"
/>
<plugin name="myplugin"
(...)
onloaded=" myswitch(testit2, get(settings[themevars].slideshow-show-panos-order));
"
/>
<action name="myswitch">
showlog();
trace('--- action: ',%0,' ---');
set(var1,1);
set(var2,5);
loop( var1 LE var2,
switch(%1, %2);
trace('myswitch 1(',get(var1),'): ', %1 );
trace('myswitch 2(',get(var1),'): ', '%2' );
trace('myswitch (',get(var1),'): ', get(testit2) );
inc(var1);
);
</action>
Alles anzeigen
the traceoutput shows me that %1 and %2 are correct loaded by myswitch
but I cant access the %1 with its correct variable name after the switch, get(testit2) gives me null...
I also tried to use '%2' inside the switch ... same result.
INFO: --- action: myswitch ---
INFO: myswitch 1(1): testit2
INFO: myswitch 2(1): 1,3,7,4,9
INFO: myswitch (1): null
INFO: myswitch 1(2): testit2
INFO: myswitch 2(2): 1,3,7,4,9
INFO: myswitch (2): null
INFO: myswitch 1(3): testit2
INFO: myswitch 2(3): 1,3,7,4,9
INFO: myswitch (3): null
INFO: myswitch 1(4): testit2
INFO: myswitch 2(4): 1,3,7,4,9
INFO: myswitch (4): null
INFO: myswitch 1(5): testit2
INFO: myswitch 2(5): 1,3,7,4,9
INFO: myswitch (5): null
Alles anzeigen
many thanks in advance for your patience,
Liebe Gruesse aus Salzburg,
Georg