| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung |
| informatik:php:php-programmierkurs:php-p4 [2018/02/13 20:32] – [PHP-Programmierkurs [4] - if-Anweisung] jonathan.pfeiffer | informatik:php:php-programmierkurs:php-p4 [2024/10/14 20:46] (aktuell) – jonathan.pfeiffer |
|---|
| | <code>>=</code> | <code>größer als oder gleich</code> | <code>Zahlen</code> | | | <code>>=</code> | <code>größer als oder gleich</code> | <code>Zahlen</code> | |
| | <code><=</code> | <code>kleiner als oder gleich</code> | <code>Zahlen</code> | | | <code><=</code> | <code>kleiner als oder gleich</code> | <code>Zahlen</code> | |
| | \\ |
| | **Beispiele für Bedingungen mit Vergleichsoperatoren**\\ |
| | * ''$preis < 100'' |
| | * ''$alter >= $mindestalter'' |
| | * ''$name == "Einstein"'' |
| <tabbox #1> | <tabbox #1> |
| <html> | |
| <iframe src="https://learningapps.org/watch?v=pfumxs0av18" style="border:0px;width:100%;height:500px" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe> | {{url>https://learningapps.org/watch?v=pfumxs0av18 80%,600px|iFrame not installed}} |
| </html> | |
| <tabbox if> | <tabbox if> |
| **if-Anweisung**\\ | **if-Anweisung**\\ |
| {{:informatik:php:php-programmierkurs:php-if-ausgabe.png?nolink&200|}} | {{:informatik:php:php-programmierkurs:php-if-ausgabe.png?nolink&200|}} |
| <tabbox #2> | <tabbox #2> |
| <html> | {{url>https://learningapps.org/watch?v=pbhop3qyk18 80%,600px|iFrame not installed}} |
| <iframe src="https://learningapps.org/watch?v=pbhop3qyk18" style="border:0px;width:100%;height:500px" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe> | |
| </html> | |
| <tabbox #3> | <tabbox #3> |
| <html><iframe src="https://learningapps.org/watch?v=pk04oghfj18" style="border:0px;width:100%;height:500px" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe></html> | {{url>https://learningapps.org/watch?v=pk04oghfj18 80%,600px|iFrame not installed}} |
| <tabbox #4> | <tabbox #4> |
| | **Arbeitsauftrag**\\ |
| * Kopiere diesen Programmcode: <file php> | * Kopiere diesen Programmcode: <file php> |
| |
| * Theis, T. (2017): Einstieg in PHP 7 und MySQL. (Rheinwerk Verlag) Bonn | * Theis, T. (2017): Einstieg in PHP 7 und MySQL. (Rheinwerk Verlag) Bonn |
| |
| {{tag>[informatik thema php html html-formulare lernpfad auswahlstrukur vergleichsoperator]}} | {{tag>[informatik thema php php-programmierkurs html html-formulare lernpfad auswahlstruktur vergleichsoperator]}} |