QuestionQ109

VerifiedLogging

A developer has declared an Int32 variable named IntVar. The developer entered the following expression in a Log Message activity:

Convert.ToBoolean(lntVar) If IntVar = 1,  

What is shown in the Output panel after the Log Message activity executes?

Explanation

Convert.ToBoolean(Int32) returns True when the integer value is nonzero and False only when it is zero. Because IntVar is 1, the logged Boolean value is True.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!