Enclose in if


What is the purpose of enclose in if? Please explain with a simple example how it can be used?

Thank you...

Hi David,

First of all I would recommend that you complete the Developer Course 1. This will answer most of your doubts.
If you already did it, you can also check the Developer Courses 2 and 3 to jell the knowledge gathered.

Regarding your question, the enclose in IF, will enclose a widget/group of widgets inside an IF. If the condition passed to it, is evaluated as True during runtime, the widgets contained on in will be rendered as html.
Otherwise, the widgets will not be rendered as html, so you will not be able to see them nor modify them via javascript, since those nodes will not exist.