Creates an if-else-query. If the specified Pin is true (a.k.a. high or 1) it will continue the script there, otherwise it will continue with the else-brick beneath.
"Else" will be created automatically.
"End if" will be created automatically and is always the last brick of the if-else-statement.
Beispiel
This script continuously checks the state of pin 15. If the pin is low (0), e.g. no electricity flows, the object is hidden. Else the object is shown.
Ergebnis