Answers for "if...else statement html"

7

html if else statement example

<div *ngIf="!show">
    <div>show is false</div>
</div>
<div *ngIf="show">
  <div>show is ture</div>
</div>
Posted by: Guest on February-16-2021
0

Example of an IF..ELSE Statement

public class Test {

   public static void main(String args[]) {
      int x = 30;

      if( x < 20 ) {
         System.out.print("This is if statement");
      }else {
         System.out.print("This is else statement");
      }
   }
}
Posted by: Guest on August-31-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language