Skip to content

Instantly share code, notes, and snippets.

View rjdkolb's full-sized avatar

Richard Kolb rjdkolb

View GitHub Profile
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")