PrepAway - Latest Free Exam Questions & Answers

What function does the ‘if’ statement perform in this code?

Consider the following ASP code:
<%
If QuantityStatus = None Then
ObjectContext.SetAbort
Response.Write “Sorry, there is not sufficient quantity on hand to process your sale.”
Else
ObjectContext.SetComplete
Account = Request.Form(“AccountIn”)
Salesupdate = CurrentSales.PostIt(AccountIn)
End if
%>
What function does the ‘if’ statement perform in this code?

PrepAway - Latest Free Exam Questions & Answers

A.
It executes one of several groups of statements.

B.
It determines whether an expression is true or false.

C.
It redirect the user to another page.

D.
It evaluates an expression or Boolean condition.


Leave a Reply