25 THEN OUTPUT "You won!" ELSE OUTPUT "..." />

IF (Single choice)

  IF number > 10

        THEN
         OUTPUT "Limit Exceeded" 
  ENDIF

 

IF (Single choice with alternative)

  IF Score > 25

        THEN
         OUTPUT "You won!" 
    ELSE  
      OUTPUT "Try Again"
  ENDIF

 

CASE (Multiple choices)

Example:

   OUTPUT "Enter your choice:"
 

INPUT Choice

  CASE OF Choice
    1: Result  x + y  
    2: Result ← x - y   
    3: Result  x * y  
    4: Result  x / y  
  ENDCASE  
  OUTPUT Result

 

CASE (Multiple choice with alternative)

 

  

OUTPUT "Enter your choice:"

 

INPUT Choice

  CASE OF Choice
       1: Result  x + y  
       2: Result ← x - y   
       3: Result  x * y  
       4: Result  x / y  
      OTHERWISE: "Invalid choice"  
  ENDCASE  
  OUTPUT Result

Please publish modules in offcanvas position.