In this section you will use content assist to fill in a template for a common loop structure. Open Test.js file in the VJET editor if you do not already have it open.
//> public void printAccount()
printAccount : function () {
if
}
if, press Ctrl+Space to enable content assist.
You will see a list of common templates for "if "statement.
When you single-click a template, you'll see the code for the template in
its help message. Note that the local array name is guessed automatically.

ifesle-if-else statement entry and press Enter to confirm the template.
The template will be inserted in your source code.

Note: the name of the selected variable changes at all places. When a template was inserted, all references to the same variable are connected to each other. So changing one changes all the other values as well.

for loop as follows:
//> public void printAccount()
printAccount: function() {
if (this.isOpenAccount()) {
vjo.sysout.println("Your account number is: 123456.");
} else {
vjo.sysout.println("You do not have an account.");
}
}
