You develop a form to update brand information. The form includes the following code:
function BrandChange(executionContext)
{
var formContext=executionContext.getFormContext();
var BrandName=formContext.getAttribute("brandname").getValue();
If(BrandName!=null){
formcontext.getAttribute("INFO_TAB").setVisible(False);
}
else {
formContext.getAttribute("INFO_TAB").setVisible(True);
What is the output of this code segment?
A. Display brandname and INFO_TAB when brandname is blank.
B. Hide brandname and INFO_TAB when brandname is blank.
C. Display brandname and hide INFO_TAB when brandname is blank.
D. Hide brandname and display INFO_TAB when brandname is blank.