if (Battle = true || NewStepCount is less than or equal to 6 steps than the OldStepCount) return true;
function CheckAction(){ CheckActionButtons(); if (Battle = true || (Steps - OldStepCount) <= 6) {return true} else {return false;}}function GetStepCount(){ return Steps; }function CheckActionButtons(){ if (IsKeyPressed(KEY_SPACE)) {return true, OldStepCount = GetStepCount();} if (IsKeyPressed(KEY_Z)) {return true, OldStepCount = GetStepCount();} else {return false;}}
if (CheckAction() == true) {Interface_Render();}
function DoSomething(){ var ret = false; if ( condition ) { ret = true; } // do_stuff return ret;}
Code: (javascript) [Select]function DoSomething(){ var ret = false; if ( condition ) { ret = true; } // do_stuff return ret;}
function DoSomething(){ var ret = condition; // do_stuff return ret;}
if ( condition1 ) { stuff() ; return something1; }if ( condition2 ) { return something2; }if ( condition3 ) { if ( sub_condition ) { return something3; }}return false;
function doSomething() { // do stuff return condition;}