This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isUsed(usersHouse.cookingElectricStovePlates) && (isUsed(usersHouse.cookingLPGstovePlates))){//yes the user uses an electric plates and LPG plates | |
addSuggestion("I see you are using LPG gas in combination with an electric stove") | |
} | |
else if (isUsed(usersHouse.cookingElectricStovePlates))//yes the user uses an electric plates but not LPG gas | |
def percent = percent(usersHouse.cookingElectricStovePlates , perfectHouse.cookingLPGstovePlates) | |
if (percent > 150){ | |
addSuggestion("I see you are not using LPG gas, perhaps you should switch and you are using more than 150 % of the IES house") | |
} | |
else if (percent > 110){ | |
addSuggestion("I see you are not using LPG gas, perhaps you should switch") |
NewerOlder