2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
Example 2 

The following Example 2 shows helps  helps the user to define the color priority , below is the code snippet of a user defined function and Test method to execute it .

Code Block

//@UserDefined
function chooseColor(priority) {
  var color = "";
  if(priority == "High"){
    color = "Red";
  } else if(priority == "Medium"){
    color = "Yellow";
  } else if(priority == "Low"){
    color = "Green";
  }
  return color;
}

//@Test
function test(){
  fullName("Pavan", "Jagadeeswaran");
}


Panel
Example 3