>
> It gets very difficult to apply the if.. else statements in more complex
> situations inside the view html code if the basics are not clearly
> understood. So i really want to understand the exact new syntax of using
> the if... else... in view html files before i start using them more and
> more.... Your help is greatly appreciated.
It's exactly the same as in any Python code, except you have to close the
if/else with a {{pass}} statement (same with a for or while loop). Check
out http://web2py.com/books/default/chapter/29/05#The-views and
http://web2py.com/books/default/chapter/29/05#if...elif...else.
Anthony
--