title: (PL SQL) - The answer is always the else statement. No if statement is working
body: <pre><code>set serveroutput on         
  SET ECHO OFF           
  SET VERIFY OFF           
  CLEAR SCREEN           
  
  ACCEPT a PROMPT ' Entrez la valeur de a : '          
  ACCEPT signe PROMPT ' Entrez la valeur de signe  : '          
  ACCEPT b PROMPT ' Entrez la valeur de b  : '          
  
  
  declare            
  
  signe char(1);             
  
  BEGIN              
  
  
  
  if signe = '+' THEN          
       dbms_output.put_line('La valeur de la somme est: ' || &amp;a + &amp;b);              
    elsif (signe = '-') THEN             
       DBMS_OUTPUT.PUT_LINE(&amp;a - &amp;b);         
    elsif (signe = '*') THEN          
       DBMS_OUTPUT.PUT_LINE(&amp;a * &amp;b);            
    elsif (signe = '/') THEN          
       DBMS_OUTPUT.PUT_LINE(&amp;a / &amp;b);           
   ELSE           
       DBMS_OUTPUT.PUT_LINE('Operation non connue');          
   END if;          
  end;          
  /          
  </code></pre>
  
  <p>I want to take three inputs: A, the math operator and B<br>
  The problem is that no if statement seems to work. The code goes directly to the else statement.             Could anyone help me on that?<br>
  Thx in advance.           </p>