Hi all ^^
Here we are I'm getting started with the if condition to dry my code, and allready have a problem ^^
Just a short code I tried is not working as I would like it to :
Code
<plugin name="spotinfo"
keep="true"
onclick="scene2load(); movemap(); showinfo();"
...
/>
<action name="scene2load">
if (scene == scene_pano2, null();, loadscene(scene_pano2););
</action>
My aim is to tell my spotinfo button not to reload the scene_pano2 if we are already in it ...
I tried : if (scene == scene_pano2, null(), loadscene(scene_pano2) );
and the opposite : if(scene != scene_pano2, loadscene(scene_pano2));
with or without ; at action end does'nt change anything.
Either it loads the scene or not, but donesn't detect the scene state...
Someone maybe has a idea ?
Thanks in advance,
Best regards.