User Tools

Site Tools


java:control_structures:if

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java:control_structures:if [2013/04/09 12:53]
88.74.72.132 deleted else
java:control_structures:if [2024/02/16 01:03] (current)
Line 7: Line 7:
 check if a condition is true or false check if a condition is true or false
  
-===== example of if =====+===== example of if in java =====
 <code java> <code java>
  
Line 40: Line 40:
  
 </code> </code>
 +
 +
 +=== a other example ===
 +<code java>
 +        if  ( (name == "meier" || name == "müller") && place =="hamburg" )  {
 +            //if the name meier or müller & the place hamburg
 +        }
 +        if (! ( (name == "meier" || name == "müller") && place =="hamburg" ) ) {
 +            //if the name not meier or müller & the place not hamburg
 +        }
 +</code>
 +
  
 === output if === === output if ===

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
java/control_structures/if.1365504807.txt · Last modified: 2024/02/16 01:02 (external edit)

Impressum Datenschutz