java.js
// If there is no special variable use 'n' for the specialReq and specialVar
If there is no special variable use 'n' for the specialReq and specialVar
If there is no special variable use ' n ' for the specialReq and specialVar
function buttonColor(objectId, varnumber, specialReq, specialVar) {
	if (specialReq === 'n') {
		if (size >= varnumber) {changeObjectColor(objectId, "greenyellow", "black");}
		else {changeObjectColor(objectId, "red", "white");}
	} else if (specialVar >= specialReq) {
		if (size >= varnumber) {changeObjectColor(objectId, "greenyellow", "black");}
		else {changeObjectColor(objectId, "red", "white");}
	}
	else if (isDarkModeEnabled === 0) {changeObjectColor(objectId, "black", "white");}
	else {changeObjectColor(objectId, "white", "black");}
}
function buttonColor ( objectId , varnumber , specialReq , specialVar ) { if ( specialReq === 'n' ) { if ( size >= varnumber ) { changeObjectColor ( objectId , "greenyellow" , "black" ) ; } else { changeObjectColor ( objectId , "red" , "white" ) ; } } else if ( specialVar >= specialReq ) { if ( size >= varnumber ) { changeObjectColor ( objectId , "greenyellow" , "black" ) ; } else { changeObjectColor ( objectId , "red" , "white" ) ; } } else if ( isDarkModeEnabled === 0 ) { changeObjectColor ( objectId , "black" , "white" ) ; } else { changeObjectColor ( objectId , "white" , "black" ) ; } }
If there is no special variable use 'n' for the specialReq and specialVar
If there is no special variable use ' n ' for the specialReq and specialVar
// used when there is no special variable // used when there is a special variable