Basically created a simple && for menus (logical AND, in case if(a && b) set c 100)
code:
PHP Code:
execnow "set first_ok 0";
execnow "set second_ok 0";
execnowondvarintvalue first_check 100 "set first_ok 1";
execnowondvarintvalue second_check 200 "setfromdvar second_ok first_ok";
execnowondvarintvalue second_ok 1 "set result 10";
execnowondvarintvalue second_ok 0 "set result -10";
which basically does this:
PHP Code:
first_ok = false;
second_ok = false;
if(first_check == 100)
first_ok = true;
if(second_check == 200)
second_ok = first_ok;
if(second_ok)
result = 10;
else
result = -10;
It is however not very possible that you can use this for a double &&, as the amount of execnow's and execnowondvarint's is limited per action. You'll need a second menu then.