Shutdown Or Reboot Action

How can I shutdown or reboot a device in an if statement?

Read these threads

https://community.kodular.io/search?context=topic&context_id=292182&q=Reboot&skip_context=true

Taifun