...
Info | ||||
---|---|---|---|---|
| ||||
if(time = "daytime") { heating = "normal"; } if(time = "nighttime") { eating = "economical"; } //because the day mode is linked first in the diagram, it has greater priority. So its code is generated after the time mode code. if (day == "weekend") { heating = "economical"; } |
Taking actions based on the state values
In this part the actions are done based on the current state values
...