if statement syntax question
-
-
-
Put an extra );
at the end
<action name="showEmptyFull" >
if(scene[name].name==scene_locker_XXXL_full,
loadscene(scene_locker_XXXL_empty, null, MERGE, BLEND(1)
););
</action>hope it helps
Tuur
-
-
found this http://www.krpano.com/docu/actions/#xml.scene
and tried this:
Code<action name="showEmptyFull" > if(get(xml.scene)==scene_locker_XXXL_empty, action(loadXXXL_e); </action>
but still haven't gotten it working
-
Hi mds,
You have to use the xml.scene variable...
yes, there is the xml.scene variable, it contains the name of the last loaded scene,So your code should be:
Code<action name="showEmptyFull" > if(xml.scene == scene_locker_XXXL_full, loadscene(scene_locker_XXXL_empty, null, MERGE, BLEND(1)); ); </action>
Also the missing ); as Tuur already has pointed out...
SAlut.
Sorry, I have an problem in posting this... corrected now ..
-
try
<action name="showEmptyFull" >
if(get(scene[name]).name==scene_locker_XXXL_empty, action(loadXXXL_e););
</action>or so..
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!