Hi, I'm trying to call an action if two conditions are true, but it doesn't seems to work :
Code
<action name="testhotspots">
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if( (get(hotspot[get(i)].style) === menustyle) AND (d LT 7),
showlog();trace(menu_on);
,
showlog();trace(menu_off);
);
);
</action>
what is wrong with my code ?
Thanx !