Thomas
2015-05-16 03:00:23
Does Simba allow for Short-circuit evaluation?
http://en.m.wikipedia.org/wiki/Short-circuit_evaluation
Example 1:
If I put the timer check before the adrenenaline check, and the timer check results false, will the script still check the adrenbar%?
Example 2:
Would this:
http://en.m.wikipedia.org/wiki/Short-circuit_evaluation
Example 1:
if (actionbar.getAdrenalinePercent() = 100) and (berserkTimer.getTime() > 60000) then
begin
sendKeys('b', 200, 40);
berserkTimer.start();
healthTimer.start();
exit;
end;If I put the timer check before the adrenenaline check, and the timer check results false, will the script still check the adrenbar%?
Example 2:
Would this:
function areaCheck(): boolean;
begin
if length(ogl.getModels(403123861, mainScreen.getBounds())) or length(ogl.getModels(584121683, mainScreen.getBounds())) then
exit(true);
end;
Be the exact same as this:function areaCheck(): boolean;
begin
if length(ogl.getModels(403123861, mainScreen.getBounds())) then
exit(true);
if length(ogl.getModels(584121683, mainScreen.getBounds())) then
exit(true);
end;