This element is used for conditional logic. It has optional elements like <elseif> and <else> elements. The contents of is element are executed when it evaluates to true



An ECMAScript expression (boolean) when evaluates to true the contents of “if” elements are executed otherwise <elseif> condition is checked and executed if it evaluates to true. If both “if” and “elseif” are false then <else> contents are executed.


block, catch, error, filled, help, if, noinput, nomatch


assign, audio, clear, disconnect, else, elseif, enumerate, exit, goto, if, log, prompt, reprompt, return, script, submit, throw, value, var.