AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Else Case
 
 

What is the way to get the Else case in AIML (if else). If a value in variable is blank we can mention as “”. But if there is value and it not satisfying all the given condition how it we can write in AIML ?

 

 
  [ # 1 ]

Last <li> statement of you condition should gave no value

<condition name="x">
   <
li value="1">One</li>
    <
li>Other</li>
</
condition

This reads as

if x == 1 then
  One
Else
  Other

 

 
  [ # 2 ]

Thanks smile it works

 

 
  login or register to react