Briefly describe the IF function and explain how it works.

What will be an ideal response?


The IF function is used to perform a logical test and then take one of two actions: an action if the result of the test is true and a different action if the result of the test is false.  The IF function has three arguments: (1) the logical test, (2) the action if true, and (3) the action if false.

Computer Science & Information Technology

You might also like to view...

In the statement template , what does the word class indicate?

A) class is a keyword that indicates that T is a type parameter. B) You are deriving a class from an existing class called T. C) You are deriving a class called T from a class called template. D) A class called T will automatically be created by the compiler. E) None of the above

Computer Science & Information Technology

Given the code below

``` var rectangleA = { x: 200, y: 10, width: 40, height: 20, moveDown: function () { this.y += 5; } }; ``` (i) write a statement to change the x value of rectangleA to 150. (ii) write a statement to invoke the method moveDown() on rectangleA.

Computer Science & Information Technology

A private tweet sent to an individual user is a(n)

a. Message. b. QuickPost. c. Shush. d. Update.

Computer Science & Information Technology

The display property specifies whether to display an element on a Web page

Answer the following statement true (T) or false (F)

Computer Science & Information Technology