Problem with && logical operator

By: Gabriel - acharat
Problem with && logical operator
2002-10-07 07:02
If I try this code:

<printWhenExpression>
new Boolean(true && true)
</printWhenExpression>

I receive an error with this message:
'The entity name must immediately follow the '&' in the entity reference.'

What can I do ?

Thanks,
Acharat



By: Teodor Danciu - teodord
RE: Problem with && logical operator
2002-10-09 01:34

Hi,

Use this special XML syntax that lets you use XML special
character in the body of an XML element:

<printWhenExpression>
<![CDATA[
new Boolean(true && true)
]]>
</printWhenExpression>

But this would be more appropriate:

<printWhenExpression>Boolean.TRUE</printWhenExpression>

Good luck!
Teodor
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness