About Question enthuware.ocajp.i.v7.2.949 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ETS User

About Question enthuware.ocajp.i.v7.2.949 :

Post by ETS User »

There seems to be a mistake in the example given in the explanation.

"Because all an if() needs is a boolean, now b1 != b2 returns false which is a boolean and as b2 = false is an expression and every expression has a return value (which is actually the Left Hand Side of the expression). Here it returns true which is again a boolean."

The last statement in the above 'Here it returns true which is again a boolean.' is not correct as
'if(b2=false)' will result in false (and not true) as it is an assignment.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.949 :

Post by admin »

You are right. This has now been fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests