"if, then, else", a well known conditional statement, is written in maxima as
if expression then do this, do that else do this and that $
where the expression is the conditions to met in order to run the "do this, do that" statements. Multiple statements have to be separate by commas!!! However if the conditions aren't met, it will run the "do this and that" statement, which again is separate by commas if there are several command. The "if then else" is then end with a ";" or a "$".
Included from NonGPLnotice
NOTE: This page is has no explicit license. (In particular, it is not licensed under the GNU General Public License.) Therefore the rights of parties other than than the copyright holder are limited to "fair use".